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 bottom
Post Reply
Post New Topic
Page: 1
TOPIC: Feature Request for custom class
#656
Feature Request for custom class 1 Year, 6 Months 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"
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
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.
Reply Quote
 
#660
Re:Feature Request for custom class 1 Year, 6 Months 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
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
viljem
Admin
Posts: 181
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#662
Re:Feature Request for custom class 1 Year, 6 Months 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.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
neo314
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 1
Moderators: tomaz
Tools JX, Powered by Joomla!; Joomla templates by SG web hosting