Skip to content

Type Alias: BasicActionElementDataSetType ​

ts
type BasicActionElementDataSetType = Omit<CamelCasedProperties<Record<Replace<ValueOf<typeof BasicActionElementDataAttributesNames>, "data-", "">, string>>, "tdOptions">;

The attributes of BasicActionElementDataAttributesNames (except data-td-options) as HTMLElement.dataset keys of type string.

Remarks ​

dataset converts the attribute names to camel case without the data- prefix, i.e. data-td-action becomes tdAction. At runtime every key may be missing (undefined) even though the type doesn't say so.

Czech Republic – The Country for the FutureFunded by the European Union – NextGenerationEUThe project was implemented within the The Country for the Future programme of the Ministry of Industry and Trade and co-financed by the European Union under NextGenerationEU.Support · Examples

Czech Republic – The Country for the FutureFunded by the European Union – NextGenerationEUThe project was implemented within the The Country for the Future programme of the Ministry of Industry and Trade and co-financed by the European Union under NextGenerationEU.Support · Examples