Formatting elements

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

AJDulk
Ebase User
Posts: 94
Joined: Fri Sep 14, 2007 12:18 pm
Location: The Netherlands
Contact:

Formatting elements

#1

Postby AJDulk » Thu Sep 26, 2013 1:01 pm

I have the following example code that I am trying to build in Ebase:

Code: Select all

<table>
	<thead>
		<tr>
			<th>	</th>
			<th> </th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>
				<label>NI number</label>
			</td>
			<td>
			<input>
				<code>
					<a>
						<span>This is a css tooltip.</span>
					</a>
				</code>
			</td>
		</tr>
		<tr>
			<td>
				<label>Naam</label><span>*</span>
			</td>
			<td>
				<input>
			</td>
		</tr>
		<tr>
			<td>
				<label>Birth Date</label>
			</td>
			<td>
				<input>
			</td>
		</tr>
		<tr>
			<td>
				<label>Address</label>
			</td>
			<td>
				<input>
			</td>
		</tr>
	</tbody>
</table>
I am currently using a Grid and have managed to get the "data" class on the table element and the class "fit" on the input type. The one I with which I am having trouble is the the "split" on the table row - any ideas how to achieve this? If you have a better way to achieve the result than Grid then feel free to offer it.

If you wish to see an example with CSS then check out https://concern.ir.rotterdam.nl/uipatte ... #panel-box
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Thu Sep 26, 2013 3:01 pm

Antony,

We are planning to introduce a new custom layout in the next V4.5 service pack. This will let you specify your own HTML - as per your example - instead of using one of the Ebase supplied layouts. So if you can wait a few weeks, this should do what you want.

Having said that, your HTML is very close to that of a Field Grid layout. Any reason why you're not using this?

Regards
Jon
0 x

User avatar
Wai
Moderator
Moderator
Posts: 165
Joined: Wed Sep 12, 2007 9:04 am
Location: Sandy, UK
Contact:

#3

Postby Wai » Tue Oct 01, 2013 8:49 am

I had the same requirement for one of my projects.

The table needed to have fixed column headers and a scroll bar on the table. To do this, it's necessary to split the <th> tag from the <tbody> and put it into the <thead>.

There will be a number of ways to do this.

1) New Custom Layout
This will involve defining your own HTML and associating it to a Repeater control.

2) Writing the column headers to Ebase table using JQuery
To do this, disable the default column headers in Ebase.
Place a HTML locator on the table
Use JQuery to locate the table and write out your own column headers.
Obvious downside is JavaScript is required.
0 x

AJDulk
Ebase User
Posts: 94
Joined: Fri Sep 14, 2007 12:18 pm
Location: The Netherlands
Contact:

Re: Formatting elements

#4

Postby AJDulk » Mon Oct 07, 2013 10:26 am

I see that the forum stripped all the class definitions :-(

@Jon: We have tried different options including the field grid, if I remember correctly the field grid layout placed far to many extra elements in the HTML that caused shifts in the styling due to the CSS we have to use - grid was (according to my colleague) the cleanest layout that nearly achieved what we wanted.

@Jon & Wai: I am looking forward to seeing what the new layout has to offer. The name already sounds promising. Thanks for the answers.
0 x

DennyAfstand
Ebase User
Posts: 1
Joined: Tue Oct 22, 2013 7:47 am

#5

Postby DennyAfstand » Tue Oct 22, 2013 8:04 am

Your idea did not come true? I'd like to see new development. :)
0 x
Advanced technology in software development - http://en.intechcore.com/

User avatar
dvanhussel
Ebase User
Posts: 161
Joined: Fri Oct 19, 2007 12:45 pm
Location: Haarlem, the Netherlands

Re: Formatting elements

#6

Postby dvanhussel » Fri Nov 15, 2013 9:59 am

AJDulk wrote:I see that the forum stripped all the class definitions :-(

@Jon & Wai: I am looking forward to seeing what the new layout has to offer. The name already sounds promising. Thanks for the answers.
Hi Anthony,

I've used the new (Velocity based) templating with custom layouts that is introduced in version 4.5.1 (released today).
We use it to generate 'table-free' HTML for input fields.

The feature is realy powerfull, so I think that it will be a solution for your problem.

Regards,

David
0 x

AJDulk
Ebase User
Posts: 94
Joined: Fri Sep 14, 2007 12:18 pm
Location: The Netherlands
Contact:

Re: Formatting elements

#7

Postby AJDulk » Mon Nov 18, 2013 6:38 am

Hi David,

Thanks for letting me know it has been released, I am looking forward to trying the new feature(s).
0 x


Who is online

Users browsing this forum: No registered users and 3 guests