How to set css property dynamically for each row using Database (using inline css) in VUE - Vue good table - database

Can someone help me with the custom style for each row? I need to set the background color of each row dynamically. I read the complete document with an example but did not found any solution for this. I found that a custom class is available.
<vue-good-table
:columns="columns"
:rows="rows"
styleClass="vgt-table">
</vue-good-table>
But I need a custom style instead of a class like a background color that will be served from DB in the SST table.
Thanks

Related

Stylizing LWC radio list?

So right now I'm trying to build this radio list for the regions in LWC, the functionality works fine in that when you click on the regions it selects all the states below for that region.
https://i.stack.imgur.com/y2MM8.png
However, I want to stylize it so that it looks more proper. I'm a little confused how to do this using these components that LWC provides. Here's a mockup of what the regions should look like.
https://i.stack.imgur.com/A26PH.png
Here's what the HTML for it looks like.
https://i.stack.imgur.com/1vWcy.png
You can probably achieve this by using the grid system : https://www.lightningdesignsystem.com/utilities/grid/
We can achieve the same style by following a couple of steps:
Pass class to each lightning inputs to scope the styling.
Style radio controls having the passed class name.
save the file as .css and store in static resources.
Load style sheet in component by making use of loadStyle method from platformResourceLoader module.

Can "addMaterialCommandToSideMenu" set different styles for different items?

for example, I want to have different colors for each item in side menu:
tb.addMaterialCommandToSideMenu("Home",FontImage.MATERIAL_HOME,e->{});
tb.addMaterialCommandToSideMenu("Website",FontImage.MATERIAL_WEB,e->{});
tb.addMaterialCommandToSideMenu("Settings",FontImage.MATERIAL_SETTINGS,e->{});
is it possible to set individual theme for each item (e.g.:"Home" use "Theme1","Website" use "Theme2")?
I cannot find any MaterialCommand type which allows me to set theme individually, is "addMaterialCommandToSideMenu" not suitable to have different items with different themes? if so, how can I achieve this? (eg:add each Button individually to the Toolbar? How?)
The shorthand here doesn't include that feature at this time. You can probably create your own material icon with any style then use addCommandToSideMenu instead.
You can customize the uiid of the command by placing a client property as such:
myCmd.putClientProperty("uiid", "MyUIID");
This probably won't work after you added the command as by then the UI was already created.
Another approach is using findCommandComponent(cmd) which returns a button you can customize.

How to write the Xpath for the Dynamically generated ID by Extjs

1Iam finding difficulty in getting the Xpath for Dynamically generated ID by Extjs.My application is using ExtJs rich UI.
Could you any one help me out'
This div is inside a table
Sample HtmlSample HTML
In this id ext-genXXXX changes in every refresh.
Can you add custom css class to the control element, e.g. see this: In ExtJS, how to add a custom CSS class to data grid rows?, and then use By.cssSelector instead of By.id?

field label can not be hidden in drupal

I use the bartik theme in drupal7 as the default theme.And I completely override the page.tpl.php file.
design a two columns layout : the lefsidebar and the contentArea. Everything is ok except one problem.
the node's field label can not be set in the Manage display panel. And the node's body label was disappeared,and other's labels do exist but can not ,say, be set hidden ,above,inline.
I google the for solutions but bad luck no result.
Need your Help. Thanks.
I do not get the point in modifying the php file to do what you want. I think you just want to set a two-column layout, but you do not need to edit your code to do so. Have you tried the Display Suite module?

ExtJS grid-like custom control

I need to implement grid like control that utilizes some complex custom widgets for viewing and displaying rows. Just like this one:
The key point here is that controls in the right column depend on the value selected in the combobox from the left column.
Does anyone know what is the best way to implement it using ExtJS 5.0 components? Should I create my own widgets to display row data that will serve as both custom renderers and editors?
I would use a beforeedit function which changes the editor of the right column (setEditor) to the required widget type depending on what is set in the left column. If you use Editing (RowEdit) plugin instead of CellEditing, you would also have to setEditor in the left column's change or select event.
This is the easiest way, but it won't show all editors at once, of course.
To have all editors displayed at once, I would make a new field containing multiple fields. You can add multiple instances of these fields to a fieldset, container, panel or form at runtime.

Resources