Welcome, Guest
Please Login or Register.    Lost Password?

Feature Request for custom class
(1 viewing) (1) Guest
This is the optional Forum header for the Suggestion Box.
Go to bottomPage: 1
TOPIC: Feature Request for custom class
#656
Feature Request for custom class 1 Month, 3 Weeks ago Karma: 0
It would be great if the edit grid form allowed one to enter a class to be attached to the grid table to make it easier to identify for javascript manipulation and styling.

I also noticed that the form wraping the table has the name "form". This really should be unique. Something like "formGrid5"
neo314
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/07/17 17:30 By neo314.
The administrator has disabled public write access.
 
#660
Re:Feature Request for custom class 1 Month, 2 Weeks ago Karma: 1
Hi,

can you explain more detailed, what you have meant?

We have css and html styling. Do you mean to be able to change the grid style using javascript (on the fly)?

Best regards,
Viljem
viljem
Admin
Posts: 152
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#662
Re:Feature Request for custom class 1 Month, 2 Weeks ago Karma: 0
I mean that the code for a table grid comes out like:

Code:


<form style="margin: 0px;" name="form" method="GET" action="/index.php?option=com_grid">
...
<table cellspacing="0" cellpadding="4" border="0" style="margin: auto;">
...



A text box in the configuration that allowed me to add a style to the form and/or table so the code came out like this:

Code:


<form class="myFormClass" style="margin: 0px;" name="form" method="GET" action="/index.php?option=com_grid">
...
<table class="myGridClass" cellspacing="0" cellpadding="4" border="0" style="margin: auto;">
...



would making styling and javascript manipulation of the table easier.

I am also suggesting that the form name:

Code:


<form style="margin: 0px;" name="form"

is bad form (pardon the pun). It should be distinct like:

Code:


<form style="margin: 0px;" name="formGrid15"

or if you don't need it, omit it. name="form" could easily lead to multiple forms with the same name.
neo314
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Tools JX, Powered by Joomla!; Joomla templates by SG web hosting