Tried to improve the data table by exposing settings to control the classes of buttons and inputs.

This commit is contained in:
2023-05-24 16:02:51 -07:00
parent 159ce7313a
commit 63d3c9f469
2 changed files with 22 additions and 13 deletions

View File

@ -1,6 +1,6 @@
import { IgniteElement } from "../ignite-html/ignite-element.js";
import { IgniteProperty } from "../ignite-html/ignite-html.js";
import { IgniteTemplate, div, h2, h6, button } from "../ignite-html/ignite-template.js";
import { IgniteTemplate, div, h2, h5, button } from "../ignite-html/ignite-template.js";
class YesNoDialog extends IgniteElement {
constructor() {
@ -31,7 +31,7 @@ class YesNoDialog extends IgniteElement {
//Title
new h2().class("text-primary text-center mb-3").child(this.title),
new h6().show(this.description, description => description != null && description != undefined).class("text-center mb-4").child(this.description),
new h5().show(this.description, description => description != null && description != undefined).class("text-center mb-4").child(this.description),
//Yes and No button
new div().class("d-flex flex-row gap-3 w-100").child(