Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@opuscapita/oc-cm-filtering-pane

Package Overview
Dependencies
Maintainers
29
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opuscapita/oc-cm-filtering-pane

OpusCapita CM Common Filtering Pane component

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
29
Created
Source

oc-cm-filtering-pane

Description

Provides a filtering pane with optional a tab based navigation (@opuscapita/react-responsive-navbar), left aligned content, right aligned content and dropdown menu (@opuscapita/react-dropdown).

Installation

npm install @opuscapita/oc-cm-filtering-pane

Demo

View the DEMO

Builds

UMD

The default build with compiled styles in the .js file. Also minified version available in the lib/umd directory.

CommonJS/ES Module

You need to configure your module loader to use cjs or es fields of the package.json to use these module types. Also you need to configure sass loader, since all the styles are in sass format.

  • With webpack use resolve.mainFields to configure the module type.
  • Add SASS loader to support importing of SASS styles.

API

Prop nameTypeDefaultDescription
classstringrequiredID for the DOM element
idstringrequiredClass for the DOM element
tabstabsTypeDefines options for the responsive navigation bar (see tabsType for more information).
leftAlignedContentnodenullLeft aligned content
rightAlignedContentnodenullRight aligned content
menuItemsarray[]@opuscapita/react-dropdown: List of the dropdown menu items (check menuItems props from @opuscapita/react-dropdown)
Types
  • tabsType:
Prop nameTypeDefaultDescription
activeKeynumber or objectrequired@opuscapita/react-responsive-navbar: Navbar item to be active initially
listlistrequired@opuscapita/react-responsive-navbar: navigation items
onSelectfunctionnull@opuscapita/react-responsive-navbar: Callback fired when the active item changes
showNavItemBorderboolfalse@opuscapita/react-responsive-navbar: show bottom-border below navbar items
showNavItemTooltipbooltrue@opuscapita/react-responsive-navbar: enables tooltips for nav items

Code example

import React from "react";
import FilteringPane from "@opuscapita/oc-cm-filtering-pane";

export default class ReactView extends React.Component {
  render() {
    return <FilteringPane propName="propValue" />;
  }
}

FAQs

Package last updated on 01 Oct 2019

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