3.0.5 • Published 5 years ago

@uxland/uxl-tile-view v3.0.5

Weekly downloads
74
License
-
Repository
github
Last release
5 years ago

\<uxl-tile-view>

What is?

It is a UI component that allows you to create a panel of widgets and be able to maximize one of them, hiding the rest.

How to use?

Just use uxl-tile-view and fill it with uxl-tile-view-item components to display a dashboard. Each of this items will be a widget with a maximize button. When you maximize one, tile view automatically expand the desired tile with animation and hide other tiles.

When you minimize the maximized tile, automatically reverse the situation, being the same UI as first.

<uxl-tile-view id="tile" attrForSelected="name" selected="view1">
    <uxl-tile-view-item name="view1"></uxl-tile-view-item>
    <uxl-tile-view-item name="view2"></uxl-tile-view-item>
    <uxl-tile-view-item name="view3"></uxl-tile-view-item>
</uxl-tile-view>
What features are available?

uxl-tile-view-item provides 4 slots to fill the content as you want:

  • header
  • maximized-header
  • maximized-content
  • maximized-content

The component switch into maximized and normal slots automatically when the item is maximized.

We have 2 scenarios: passing a title or maximizedTitle, or passing header or maximizedHeader

Disable animations

If want to disable animations for all component, just pass disableAnimations attribute when you invoke them

Properties

AttributeDescriptionDefault
iconMinstringTile item icon when the tiles is minimized ( from MD SVG icon 'add_circle_outline')
iconMaxstringTile item icon when the tile is maximized ( from MD SVG icon 'clear')
animationTimenumberDuration of animation ( 500ms)
maximizedItemstringThe id of maximized item (null by default or when tile-view is not maximized)
isMaximizedbooleanIndicate if tile view has some item maximized (false for default)
<uxl-tile-view iconMin="icon-name" iconMax="icon-name">
    <uxl-tile-view-item name="view1"></uxl-tile-view-item>
    <uxl-tile-view-item name="view2"></uxl-tile-view-item>
    <uxl-tile-view-item name="view3"></uxl-tile-view-item>
</uxl-tile-view>

####Styling

#####Stylable Shadow Parts The following styleable part's of the element confirm-component are available for styling:

Shadow tree partDescriptionStyle outside of shadow tree
<div id="tile-container" part="tile-container">...The container of the tile view itemuxl-tile-view-item::part(tile-container) {...}
<div id="tile-header" part="tile-header">...The header of the tile view itemuxl-tile-view-item::part(tile-header) {...}
div id="tile-content" part="tile-content">...The content of the tile view itemuxl-tile-view-item::part(tile-content) {...}

#####Mixins The following custom properties and mixins are available for styling:

Custom propertyDescriptionDefault
--uxl-tile-view-displayThe display of the tile view minimizedflex
--uxl-tile-view-max-displayThe display of the tile view maximizedflex
--uxl-tile-view-background-colorThe background color of the tile view minimizedwhite
--uxl-tile-view-max-background-colorThe background color of the tile view maximizedwhite
--uxl-tile-view-paddingThe padding of the tile view minimized0
--uxl-tile-view-max-paddingThe padding of the tile view maximized0
--uxl-tile-view-item-title-colorThe color of the title tile itemblack
--uxl-tile-view-item-header-background-colorThe background color of the header tile view itemwhite
--uxl-tile-view-item-background-colorThe background color of the tile view itemwhite
--uxl-tile-view-item-paddingThe padding of the tile view item16px
--uxl-tile-view-item-border-radiusThe border radius of the tile view item0px
--uxl-tile-view-item-box-shadowThe box shadow of the tile view itemnone
--uxl-tile-view-item-borderThe border of the tile view item'1px solid black'
--uxl-tile-view-item-icon-colorThe icon color'#000000'
--uxl-tile-view-item-icon-sizeThe icon height and width size'35px'
--uxl-tile-view-item-icon-paddingThe icon padding'8px'
--uxl-tile-view-item-max-background-colorThe background color of maximized the tile view itemwhite
--uxl-tile-view-item-header-paddingThe padding of tile header8px 6px 8px 16px
---uxl-tile-view-item-header-border-bottom,The border bottom of tile headernone
3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

3.0.0-beta.1

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.39

5 years ago

2.1.38

5 years ago

2.1.37

5 years ago

2.1.36

5 years ago

2.1.35

5 years ago

2.1.34

5 years ago

2.1.33

5 years ago

2.1.32

5 years ago

2.1.31

5 years ago

2.1.30

5 years ago

2.1.29

5 years ago

2.1.28

5 years ago

2.1.27

5 years ago

2.1.26

5 years ago

2.1.25

5 years ago

2.1.24

5 years ago

2.1.23

5 years ago

2.1.22

5 years ago

2.1.21

5 years ago

2.1.20

5 years ago

2.1.19

5 years ago

2.1.18

5 years ago

2.1.17

5 years ago

2.1.16

5 years ago

2.1.15

5 years ago

2.1.14

5 years ago

2.1.13

5 years ago

2.1.12

5 years ago

2.1.11

5 years ago

2.1.10

5 years ago

2.1.9

5 years ago

2.1.8

5 years ago

2.1.7

5 years ago

2.1.6

5 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago