npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

redux-autoform-bootstrap-ui

v1.8.1-experimental

Published

Bootstrap UI implementation for redux-autoform

Downloads

53

Readme

redux-autoform-bootstrap-ui

Build Status npm version codecov Coverage Status

NPM NPM

Bootstrap UI for redux-autoform

Be patient. This documentation is still under construction. Pull-requests are welcome.

Introduction

Bootstrap UI for redux-autoform.

Demo

Demo

Getting started

Using

First, make sure you are familiar with redux-autoform and that you've read the getting started section.

This project provides component factories for redux-autoform:

import { EditComponentFactory, DetailsComponentFactory } from 'redux-autoform-bootstrap-ui';

Now all you have to do is to use AutoForm an pass one of the above factories as the componentFactory prop of the Autoform component. You can see the AntuForm props here.

Add the required third-party components

Components that are installed automatically:

Components that are need to be installed manually:

Styling

  • Import styles.less file. This file contains infrastructural styling.
  • Import styles-defaultfactories.less. This file contains styles related to the components used in the Bootstrap factories. (ToDo: Rename this file to bootstrap.theme.less)
  • import the thid-party styles for the components used in the default factories. The example below lists what have to be imported:

yourstyles.less:

@import './node_modules/bootstrap/less/bootstrap.less';
@import './node_modules/font-awesome/less/font-awesome.less';
@import './node_modules/react-widgets/dist/css/react-widgets.css';
@import './node_modules/react-select/dist/react-select.css';
@import './node_modules/redux-autoform/lib/less/styles';
@import './node_modules/redux-autoform/lib/less/styles-defaultfactories';

Alternatively, if you're using webpack with css-loader and less-loader, which you probably are, you can just import these less files directly in your JavaScript.

Running the demo locally

In order to understand how Redux-Autoform and Redux-Autoform-Bootstrap-UI works, a good path is to run the demo locally and see how it works:

npm run start

Now the demo should be available here: http://localhost:4000/.

Components

Common metadata

Metadata that is common to most of the components.

Metadata | Description --- | --- displayName | The user-friendly name for the field. component | Which component to use. readOnly | Whether or not the component should be in read-only state. help | Additional help so the end-user knows what the field is about.

TextBox

Specific metadata for the TextBox component. Common metadata is not listed.

Metadata | Description --- | --- placeholder | The text that should be displayed as a hint when there's no value. addonBefore | The text that should be added-on before the component. addonAfter | The text that should be added-on after the component.

TextBox demo

TextArea

Specific metadata for the TextBox component. Common metadata is not listed.

Metadata | Description --- | --- placeholder | The text that should be displayed as a hint when there's no value. addonBefore | The text that should be added-on before the component. addonAfter | The text that should be added-on after the component. rows | The number of rows.

TextArea demo

CheckBox

Checkbox demo.

Select

Specific metadata for the Select component. Common metadata is not listed.

Metadata | Description --- | --- options | The options to display. Options are an array of objects with two properties: value: The actual value that is stored in the model. text: What is displayed to the user

Select demo.

Lookup

Specific metadata for the Lookup component. Common metadata is not listed.

Metadata | Description --- | --- options (array) | The options to display. Options is an array of objects with two properties: value: The actual value that is stored in the model; label: What is displayed to the user options (object) | The options to display. Options is an object containing three properties: url: The URL to call for data. This call should return an array of objects. valueKey: In the resulting Array, this is the name of the property that should contain the actual value. labelKey: In the resulting Array, this is the name of the property that should contain the label.

Lookup demo.

DateTimePicker

Specific metadata for the DateTimePicker component. Common metadata is not listed.

Metadata | Description --- | --- format | Any format supported by Moment.js. Defaults to your locale configuration. Make sure you have it properly configured.

DateTimePicker demo.

Contributing

Pull-requests are really really welcome. If you don't know what to contribute with, please check the issues.

We'll be more than glad to invite frequent contributors to join the organization. If you need help understanding the project, please post an issue and I'll do my best to reply and make sure you understand everything you need.

In order to make a pull request:

  1. Fork it.
  2. Create your feature-branch git checkout -b your-new-feature-branch
  3. Commit your change git commit -am 'Add new feature'
  4. Push to the branch git push origin your-new-feature-branch
  5. Create new Pull Request with master branch

Third party

Components this project rely on:

License

redux-autoform is MIT licensed.