be.doeraene.webcomponents.ui5.theming.Theming.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web-components-ui5_sjs1_3 Show documentation
Show all versions of web-components-ui5_sjs1_3 Show documentation
Laminar bindings for the web-component library UI5 from SAP
The newest version!
package be.doeraene.webcomponents.ui5.theming
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js
//noinspection ScalaUnusedSymbol
object Theming {
@js.native
@JSImport("@ui5/webcomponents-base/dist/config/Theme.js", "setTheme")
def setTheme(theme: String): js.Promise[Unit] = js.native
@js.native
@JSImport("@ui5/webcomponents-base/dist/config/Theme.js", "getTheme")
def getTheme(): String = js.native
@js.native
@JSImport("@ui5/webcomponents-base/dist/asset-registries/Themes.js", "registerThemePropertiesLoader")
def registerThemePropertiesLoader(
packageName: String,
themeName: String,
loader: js.Function0[js.Promise[js.Object]]
): Unit =
js.native
@js.native
@JSImport(
"@ui5/webcomponents/dist/Assets.js",
JSImport.Namespace
)
object WebComponentsAssets extends js.Object
@js.native
@JSImport(
"@ui5/webcomponents-fiori/dist/Assets.js",
JSImport.Namespace
)
object WebComponentsFioriAssets extends js.Object
@js.native
@JSImport(
"@ui5/webcomponents-compat/dist/Assets.js",
JSImport.Namespace
)
object WebComponentsCompatAssets extends js.Object
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy