This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (adminlte-2-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
adminlte-react
Yet another project based on the great AdminLTE Control Panel Template. This is not because of a not invented here syndrom but because the other projects seem not very active or did not meet the expectations I had in using such a react component. The philosophy for this project was to make it as easy as possible to use from a developer standpoint and rework it where I've seen the use to. Currently it does still depend on jQuery here and there (especially the DataTables Component).
Installation
npm i adminlte-react
Components
General UI Type/Coloring options
Several components have a property type or color that allows the usage of the following values to give different accents to the component
Types and Colors
Type
Color
ColorCode
default
gray
#d2d6de
primary
light-blue
#3c8dbc
info
aqua
#00c0ef
success
green
#00a65a
warning
yellow
#f39c12
danger
red
#f56954
Additional Colors
In addition there are several colors available without a corresponding type
Color
navy
teal
purple
orange
maroon
black
Icons
AdminLTE makes use of font-awesome icons and ionicons. Since we wanted to stay up to date, we migrated font awesome to version 5.x. Therefore the syntax for icons is no longer fa-icon but instead far/fas/fab-icon. All available icons can be found on the respective websites (font-awesome, ionicons)
AdminLTE
Props
Name
Type
Default
Description
children
node
NavbarMenu, Sidebar and Content Components belong here
title
oneOf: string, [string]
['Admin', 'LTE']
Title in header bar, if an array is supplied the first element will be rendered bold and the second normal
titleShort
oneOf: string, [string]
['Admin', 'LTE']
Title in header bar when the sidebar is collapsed, if an array is supplied the first element will be rendered bold and the second normal
Callback after row gets selected - arguments (rowdata)
onDeselect
function
Callback after row deselect - arguments (rowdata)
footer
bool
false
Renders column headers on bottom of table
hover
bool
false
Highlight hovered rows
border
bool
false
Show borders around cells
condensed
bool
false
Compact data layout
striped
bool
false
Alternate row coloring
noMargin
bool
false
Removes table margin
responsive
bool
false
Resize table of window resize
selectedRows
[object]
Allows passing in the currently selected rows
onClickEvents
object
Row level bound click events based on class on cell dom element. Example render: (data) => ``<div class="on-click-event">${data}</div>``' will bind to an object {onClickEvent: (data, rowIndex, rowData) => {console.log("do stuff with row data")}}
Description
Simple wrapper over <dl>
Props
Name
Type
Default
Description
horizontal
bool
false
Will render the list horizontal
DescriptionItem
Props
Name
Type
Default
Description
text
string
label
string
noText
bool
false
Use this if you only want to render a label
DescriptionBlock
A block content element containing several text elements (text and header) a percentage description and indicator.