Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xlork/core

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xlork/core

We’ve made it really simple for you to get started with xlork with our new xlorkClient Component. Here’s what you’ll need to know to get started.

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

xlork

We’ve made it really simple for you to get started with xlork with our new xlorkClient Component. Here’s what you’ll need to know to get started.

React adapter for xlork.com

NPM JavaScript Style Guide

Installation / Import

First, install the dependency via npm:

import { XLorkClient } from '@xlork/react';

Usage

<XLorkClient
  licenseKey="XXXX-XXXX-XXXX-XXXX"
  preload={false}
  user={{
    email: 'example@xlork.com',
    name: 'xlork-demo',
  }}
  settings={{
    title: 'Upload data',
    columns: [
      {
        label: 'Customer Name',
        key: 'customer_name',
        type: 'text',
        validators: {
          type: 'required',
          regexMatches: '^[0-9]{10}$',
          error: 'Name can not be blank',
        },
      },
      {
        label: 'Customer Mobile',
        key: 'customer_mobile_number',
        type: 'numeric',
        validators: {
          regexMatches: '^[0-9]{10}$',
          error: 'Please input 10 digit no.',
        },
      },
      {
        label: 'Email',
        key: 'email',
        type: 'email',
      },
      {
        label: 'Date',
        key: 'date',
        type: 'date',
        dateFormat: 'DD-MM-YYYY',
      },
    ],
    theme: 'SUNFLOWER',
    maxRecords: 20,
    allowInvalidSubmit: true,
  }}
  onComplete={async (response) => {
    console.log(response);
  }}
  onCancel={() => {
    console.log('onCancel - ----');
  }}
  loadOnDemand={(init) => {
    return (
      <button className="btn btn-primary extra_margin" onClick={init}>
        Upload Data
      </button>
    );
  }}
/>

Try our example in CodeSandbox.

Readme

For usage see the guide here - https://xlork.com/docs

License

MIT © [xlork]

Keywords

FAQs

Package last updated on 25 Sep 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc