1.0.10 • Published 4 years ago

@halodigital/pane v1.0.10

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Pane by Halo-Digital

This package contains a side pane with the following features:

  • Horizontal and vertical Resizing

  • Horizontal and vertical scrolling

  • Close button

Enjoy!

Attributes

horizontalResize

Declare if the pane will be resizable horizontally and where to place the resize bar
Type: 'right' | 'left' Default: null

verticalResize

Declare if the pane will be resizable vertically and where to place the resize bar
Type: 'top' | 'bottom'
Default: null

state

The pane state
Type: 'opened' | 'closed'
Default: 'opened'

showCloseButton

Declare if close button will appear in the right top corner
Type: boolean
Default: true

Events

stateChange

Triggers on state change
Event Parameter Type: 'opened' | 'closed'

sizeChange

Triggers on size change
Event Parameter Type: {dimension: 'width' | 'height', value: string}

Example

<halo-pane
    horizontalResize="right"
    verticalResize="bottom"
    state="opened"
    [showCloseButton]="false"
    (stateChange)="stateChanged($event)"
    (sizeChange)="sizeChanged($event)">

    <div>Some content</div>

</halo-pane>
1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.10

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago