jui

WebJar for jui

License

License

MIT
Categories

Categories

JavaScript Languages Github Development Tools Version Controls
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

github-com-juijs-jui
Last Version

Last Version

2.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

jui
WebJar for jui
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/juijs/jui

Download github-com-juijs-jui

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-juijs-jui/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-juijs-jui</artifactId>
    <version>2.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-juijs-jui/
implementation 'org.webjars.bower:github-com-juijs-jui:2.0.3'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-juijs-jui/
implementation ("org.webjars.bower:github-com-juijs-jui:2.0.3")
'org.webjars.bower:github-com-juijs-jui:jar:2.0.3'
<dependency org="org.webjars.bower" name="github-com-juijs-jui" rev="2.0.3">
  <artifact name="github-com-juijs-jui" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-juijs-jui', version='2.0.3')
)
libraryDependencies += "org.webjars.bower" % "github-com-juijs-jui" % "2.0.3"
[org.webjars.bower/github-com-juijs-jui "2.0.3"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower : jquery jar [1.8.0,)

Project Modules

There are no modules declared in this project.

Installation

NPM

npm install juijs-ui

Browser

<link rel="stylesheet" href="../dist/jui-ui.classic.css" />
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://cdn.rawgit.com/juijs/jui-core/es6/dist/jui-core.js"></script>
<script src="../dist/jui-ui.js"></script>

ES Modules

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

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.

.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

<body class="jui">
    <div id="timepicker_date" class="timepicker calendar small" style="margin-right: 3px;">
        <input type="input" class="year" maxlength="4" />-<input type="input" class="month" maxlength="2" />-<input type="input" class="date" maxlength="2" />
        <i class="icon-calendar"></i>
    </div>
    
    <div id="timepicker_time" class="timepicker small">
        <input type="input" class="hours" maxlength="2" value="00" /> :
        <input type="input" class="minutes" maxlength="2" value="00" />
        <i class="icon-arrow7"></i>
    </div>
</body>

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

jui.ready([ "ui.timepicker" ], function(timepicker) {
    timepicker("#timepicker_date");
    timepicker("#timepicker_time");
});
org.webjars.bower

JUI Framework

JUI is HTML5 based UI Framework. Support many components, SVG charts and fast grid.

Versions

Version
2.0.3