https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/
× This is the optional Forum header for the Suggestion Box.

Feature Request for custom class

  • neo314
  • neo314's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 4 months ago #656

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"

Last edit: 14 years 4 months ago by neo314.

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #660

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

Please Log in or Create an account to join the conversation.

  • neo314
  • neo314's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 4 months ago #662

I mean that the code for a table grid comes out like:

<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:
<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:
<form style="margin: 0px;" name="form"
is bad form (pardon the pun). It should be distinct like:
<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.

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.167 seconds

Contact Us

Contact us on Discord

Contact us on Facebook