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

angular-schema-form-panel

v1.0.0

Published

Bootstrap Panel Decorator for Angular Schema Form

Downloads

9

Readme

Angular Schema Form Bootstrap Panel Decorator v1.0.0

Adds support for Bootstrap's custom panel component in Angular Schema Form

View the Live Demo on CodePen for examples.


Build status Dependencies status NPM version Bower version

Installation

Install angular-schema-form-panel via npm or bower.

NPM

npm install angular-schema-form-panel

Bower

bower install angular-schema-form-panel

Usage

Include angular-schema-form-panel.min.js (or the un-minified angular-schema-form-panel.js) file in your HTML document(s):

<script src="node_modules/angular-schema-form-panel/dist/angular-schema-form-panel.min.js"></script>

Add schemaFormPanel as an Angular dependency in your application module:

var app = angular.module('myApp', [..., 'schemaForm', 'schemaFormPanel']);

Then use panel as the type in your form's JSON definition:

$scope.form = [
    ...,
    {
        type: "panel",
        items: [...],
        ...options
    }
]

You can also make an accordion of panels by using panel-group as the type (make sure the items of your panel-group are panel objects) in your form's JSON definition:

$scope.form = [
    ...,
    {
        type: "panel-group",
        items: [
            {
                type: "panel",
                items: [...],
                ...options
            },
            {
                type: "panel",
                items: [...],
                ...options
            },
            {
                type: "panel",
                items: [...],
                ...options
            }
        ]
    }
]

Options

You can use the following options on each panel object. All options are optional unless specified.

| Option Name | Type | Description | | -------------- | -------- | ----------- | | items | array | Specifies all items to include in the panel body. Technically optional but without it your panel will be empty. | | style | string | Specifies the panel's contextual style (e.g. success, info, danger, etc.). Defaults to default. | | title | string | Specifies the title displayed in the header of the panel. This is required for collapsible panels. | | footer | string | Specifies the HTML content added to the panel's footer. | | collapsible | bool | Specifies if the panel can be collapsed. Remember to specify a title for collapsible panels. Defaults to false. | | collapsed | bool | Specifies if the panel should be collapsed initially. This only applies to collapsible panels. Defaults to false. | | panelClass | string | Specifies additional class(es) to add to the main panel element. | | headingClass | string | Specifies additional class(es) to add to the panel's heading element. | | bodyClass | string | Specifies additional class(es) to add to the panel's body element. | | footerClass | string | Specifies additional class(es) to add to the panel's footer element. | | list | bool | Specifies if the items should be rendered as elements of a list group. Defaults to false. |