Socket
Book a DemoInstallSign in
Socket

realgrid-touch

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

realgrid-touch

RealGrid-Touch is a data list component library for developing mobile web applications for business purposes.

1.0.6
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

RealGrid-Touch

RealGrid-Touch is a data list component library for developing mobile web applications for business purposes.

Install

npm i realgrid-touch

License

The License file is required for proper use. More information, visit: http://service.realgrid.com/start

Usage


import RealGridTouch from "realgrid-touch"

data = RealGridTouch.createListData("",this.fields)
      .createView('view')
      .sort(['OILSTATN_NM'])
      .build();

if(data) {
    list = RealGridTouch.createListControl(document, "realtouch");
    list.setConfig(this.config);
    list.data = data;
}

... 

// config
this.config = {
      props: {
        numberFormat: ",",
        templates: {
          row: row_template,
          footer: footer_template,
        },
        rowCommands: {
          "@delete": { label: "DELETE" },
        },
        onRowSwipe: (args) => {
             console.log("SWIPE ROW", args.row);
        },
        onRowClick: (args) => {
            console.log("ROW: " + args.row);
        },
      },
      options: {
        row: {
          template: "row",
          commands: ["@info", "@delete"],
          clickAction: "info",
        },
        rowBar: {
          visible: true,
          display: "order",
          order: {
            suffix: ".",
            style: { fontSize: "19px", color: "#777" },
          },
        },
        scrollBar: true,
        scrollIndicator: {
          position: "top",
        },
        header: {
          visible: true,
          clickAction: "field",
          caption: "요소수 구입처",
          captionAlign: "center",
          buttons: [{
            name: "home",
            position: "head",
            label: "처음",
            onClick: this.homeClicked,
          }, {
            name: "edit",
            label: "편집",
            style: {
              color: "blue",
            },
            onClick: this.buttonClick,
          }],
        },
        footer: {
          visible: true,
          template: "footer",
          buttons: [{
            name: "delete",
            label: "삭제",
            position: "tail",
            visible: false,
            enabled: this.enabledDeleteButton,
            onClick: this.deleteClicked,
            style: {
              color: "red",
            },
          }],
          layoutParams: {
            checkVisible: this.checkVisible
          },
        },
        emptyPage: {
          onLoadClick: this.onLoadClick,
        },
        commandBox: {
          mode: "overlap",
        },
        infoPage: {
          header: { caption: "요소수 정보" },
          viewType: "B",
          showDirection: "right",
        },
      },
    };

styles

  • The themes are located in './dist'
import 'realgrid-touch/dist/realgrid-touch-style.css';

Library Target

  • index.esm.js for ES
  • index.js for umd

Exmaple

visit: https://github.com/realgrid/realgrid-touch-examples

Asking Questions

support@realgrid.com

Keywords

realgrid

FAQs

Package last updated on 22 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.