pascaliske/form-elements


Collection of form elements for Angular 2+ projects.

https://pascaliske.github.io/form-elements

License: MIT

Language: TypeScript

Keywords: angular, angular-cli, form-elements


@pascaliske/form-elements

Build Status Dependabot Status

Installation

To install the module use the following command:

$ yarn add @pascaliske/form-elements

Usage

Import the module in your Angular app:

import { NgModule } from '@angular/core'
import { CommonModule } from '@angular/common'
import { BrowserModule } from '@angular/platform-browser'
import { FormElementsModule } from '@pascaliske/form-elements'
import { AppComponent } from './app.component'

@NgModule({
    bootstrap: [AppComponent],
    declarations: [AppComponent],
    imports: [CommonModule, BrowserModule, FormElementsModule],
})
export class AppModule {}

Then import the styles in your global scss styles:

@import '~@pascaliske/form-elements/styles';

Note: If you want to use the cmp-f-date component you also need to add the flatpickr styles:

@import '~flatpickr/dist/flatpickr.min.css';

Now you can use the components in your template:

<cmp-f-form>
    <cmp-f-row>
        <cmp-f-column>
            <cmp-f-input [label]="'My text input'"></cmp-f-input>
        </cmp-f-column>
    </cmp-f-row>
</cmp-f-form>

License

MIT © Pascal Iske

Project Statistics

Sourcerank 2
Repository Size 10 MB
Stars 0
Forks 0
Watchers 1
Open issues 2
Dependencies 1,775
Contributors 5
Tags 23
Created
Last updated
Last pushed

Top Contributors See all

dependabot-preview[bot] Pascal Iske greenkeeper[bot] dependabot[bot] Greenkeeper

Packages Referencing this Repo

@pascaliske/form-elements
Collection of form elements for Angular 6+ projects.
Latest release 2.4.4 - Updated

Recent Tags See all

v2.4.4 February 05, 2020
v2.4.3 February 05, 2020
v2.4.2 February 05, 2020
v2.4.1 February 05, 2020
v2.4.0 February 05, 2020
v2.3.0 July 25, 2019
v2.2.1 May 07, 2019
v2.2.0 April 24, 2019
v2.1.0 April 17, 2019
v2.0.0 April 03, 2019
v1.2.5 February 24, 2019
v1.2.4 February 01, 2019
v1.2.3 February 01, 2019
v1.2.2 November 30, 2018
v1.2.1 November 26, 2018

Something wrong with this page? Make a suggestion

Login to resync this repository