Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/juijs/jui-ui

JUI provide all kinds of UI components that are used in web pages. However, charts and grids are not included.
https://github.com/juijs/jui-ui

component-library javascript ui

Last synced: 2 days ago
JSON representation

JUI provide all kinds of UI components that are used in web pages. However, charts and grids are not included.

Awesome Lists containing this project

README

        

## Installation

### NPM
```bash
npm install juijs-ui
```

### Browser

```html

```

### ES Modules

The difference with the existing method is that you need to add the module directly using the 'use' function.

```js
import jui from 'juijs-ui'
import TimepickerComp from 'juijs-ui/src/components/timepicker.js'
import Styles from './index.less'

jui.use(TimepickerComp);
```

Below is the index.less file. You can only use the style you want to bundle.

```less
.jui {
@import "../node_modules/juijs-ui/src/styles/base/mixins.less";
@import "../node_modules/juijs-ui/src/styles/common.less";
@import "../node_modules/juijs-ui/src/styles/common.theme.less";
@import "../node_modules/juijs-ui/src/styles/icon.less";
@import "../node_modules/juijs-ui/src/styles/icon.theme.less";
@import "../node_modules/juijs-ui/src/styles/timepicker.less";
@import "../node_modules/juijs-ui/src/styles/timepicker.theme.less";
@import "../node_modules/juijs-ui/src/styles/theme/classic.less";
}
```

## Usage

```html


--




:


```

The UI component creation code is the same as the existing one.

```js
jui.ready([ "ui.timepicker" ], function(timepicker) {
timepicker("#timepicker_date");
timepicker("#timepicker_time");
});
```