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

@chartiq/finsemble-react-controls

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chartiq/finsemble-react-controls

  • 4.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

FinsembleMenu

Overview

The FinsembleMenu is a React control to help you to quickly assemble a menu. A menu is just an ephemeral Finsemble component that shows up when a button is clicked, hides when the menu loses focus, and hides on escape. This control provides styling, and handles those events common to all menus.

Hierarchy

This control is part of a collection of controls. In order to make sure that your menu component has appropriate classes and styling, adhere to this hierarchy.

  • FinsembleMenu
    • FinsembleMenuSection

Props

PropTypePossible ValuesDefault ValueDescription
paddingobjectPadding object. By default, FSBL.Clients.WindowClient.fitToDOM will fit to the content of the menu. If you pass in the padding object, fitToDOM will give the component's innards some breathing room.
padding.heightnumberN/AnullExtra height to add.
padding.widthnumberN/AnullExtra width to add.
classNamestringN/AnullClass name for the menu component.
children?

Example

The code below is the render method for our our fileMenu.

render() {
    let padding = {
        height: 10,
        width: 40
    }
    return (<FinsembleMenu padding={padding}>
            <FinsembleMenuSectionLabel>
                Finsemble
            </FinsembleMenuSectionLabel>
            {/*Options in the file menu.*/}
            <FinsembleMenuSection className='menu-primary'>
                <FinsembleMenuItem label="Central Console" onClick={FileMenuActions.showCentralConsole}/>
                <FinsembleMenuItem label="Documentation" onClick={FileMenuActions.spawnDocs}/>
                <FinsembleMenuItem label="Logout" onClick={FileMenuActions.logout}/>
                <FinsembleMenuItem label="Quit" onClick={FileMenuActions.shutdownApplication}/>
            </FinsembleMenuSection>
    </FinsembleMenu>);
};

FAQs

Package last updated on 23 Jan 2020

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