Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Actions with rows in the table component #1144

Answered by lovasoa
Aesth asked this question in Q&A
Discussion options

The edit_url and delete_url parameters in the table component are displayed in columns with corresponding names in English. Is it possible to rename the column names, perhaps in another language?

The same applies to the actions parameter in the row in the JSON form that has the Actions column header, as in the "CRUD with authentication" example. I'd also like to change the name of this row.

Furthermore, is there a way to move individual action buttons outside the table, but for the selected row in the table? Or is this functionality not available?

You must be logged in to vote

The edit_url and delete_url parameters in the table component are displayed in columns with corresponding names in English. Is it possible to rename the column names, perhaps in another language?

You can use _sqlpage_actions to create an icon button with a custom title.

https://sql-page.com/component.sql?component=table

Furthermore, is there a way to move individual action buttons outside the table, but for the selected row in the table? Or is this functionality not available?

You can do that by writing your own custom CSS.

Replies: 2 comments

Comment options

The edit_url and delete_url parameters in the table component are displayed in columns with corresponding names in English. Is it possible to rename the column names, perhaps in another language?

You can use _sqlpage_actions to create an icon button with a custom title.

https://sql-page.com/component.sql?component=table

Furthermore, is there a way to move individual action buttons outside the table, but for the selected row in the table? Or is this functionality not available?

You can do that by writing your own custom CSS.

You must be logged in to vote
0 replies
Answer selected by Aesth
Comment options

You can use _sqlpage_actions to create an icon button with a custom title.

I see. I might be wrong, but I think standard elements should have custom labels. Otherwise, they're immediately considered unusable for languages ​​other than English.

You can do that by writing your own custom CSS.

Unfortunately, I'm not that advanced yet. It would probably be nice to have at least a feature like webmail clients, where you can mark lines in the email list with checkboxes and then apply a batch operation to them.

One more question. Can a combination of fields be used as the {id} of a table row, since tables don't always use a primary key consisting of a single field? It's clear that field concatenation can be used, but what if we could use, for example, JSON to describe the {id} field, with the fields: parameter_name and field name, so that the {id} would immediately contain part of the parameter string of the standard form: "name=value[&name=value, ...]"

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /