alpheios-components

3.4.3-incr-3.4.x.20220428394 • Public • Published

Components

Alpheios Common Components Library

JavaScript Style Guide Build Status Coverage Status

AppController configuration

A UI controller should usually be created using its create() static method. This method takes state object (an instance of UIStateAPI) as an argument. This state object provides configuration options that a UI controller uses during it's activation. This includes a panel status (open or closed) and what tab be shown when a panel be opened for the first time.

To set those options to default, use a DEFAULT constants that existis for both of those values. With this option applied their values will be set according to internal UI controller settings and user preferences that a UI controller will obtain during initialization.

To use values other then default, specify a panel state (open or closed) and/or a name of a tab that will be opened by default explicitly.

CSS Styles

Components use a Sass version of UIKit 3 framework for visual styling. The UIKit build has been customized with custom variables and mixins to make it match default Alpheios styles.

This custom UIKit build uses an .auk root namespace class to avoid interference with a host page that might use another version of UIKit. To provide this safety, all UIKit selectors use the following format: .auk .some-uikit-selector. This requires any root component, e.g. panel or popup, to have .auk class set for the outermost HTML element of the component.

In addition to that, components support custom skins. In order for a custom skin to be applied:

  1. A CSS file of a skin must be loaded in an addition to a default CSS style. As selectors of a CSS skin have higher specificity than the default style selectors, it does not matter whether the default CSS style file or the skin CSS file be loaded first.
  2. A modifier class specifying a skin name must be added to the root of HTML elements that have an .auk class. For example, to enable a skin named "blue", a .auk--blue class should be added to all HTML elements that have .auk class assigned.

Readme

Keywords

none

Package Sidebar

Install

npm i alpheios-components

Weekly Downloads

1

Version

3.4.3-incr-3.4.x.20220428394

License

ISC

Unpacked Size

23.2 MB

Total Files

275

Last publish

Collaborators

  • balmas
  • kirlat
  • irinaskl0609
  • alpheios-project