Skip to main content

toButtonStyle

Converts your old button style string to ButtonStyle

This can be useful if you are converting from DJS v13 to v14

Implementation

simplydjs.toButtonStyle("OLD_STYLE")

Types

simplydjs.toButtonStyle(style: string): ButtonStyle

Example

https.js
const simplydjs = require('simply-djs')

simplydjs.toButtonStyle("PRIMARY")
// ButtonStyle.Primary