/nkui-sample

typescript sample for nkui: https://www.npmjs.com/package/@naskar/nkui

Primary LanguageJavaScript

nkui-sample - @naskar/nkui

Create complex components using the simple component without performance issues using typescrypt.

example

let ui = new UIX();

let username = ui.field().label('Username');
let password = ui.field().label('Password').password();

return ui.item().add(ui.vertical()
    .add(username)
    .add(password)
    .add(ui.button().primary().text('Login').click(() => {
        this.apiLogin(username.value(), password.value());
    })))
;

install

npm i

start

npm start

The start script run http-server with watchfy, thus, on change files, refresh your browser to update the javascript files.