Leverege Platform

Leverege Platform

  • Overview
  • JSDocs
  • REST API
  • Help

›JSDoc

JSDoc

  • Home
  • API Server
  • API Attributes
  • Api Patch Ops
  • API Redux
  • Array Util
  • Base62 Util
  • Cache
  • Cluster Manager
  • Data Store
  • Exit
  • Factory
  • Limit
  • Lock
  • Message Queue
  • Messages
  • Path
  • Permissions
  • Reasoner
  • String Util
  • UI Active Theme
  • UI Elements
  • UI Linear View Elements
  • UI Mapbox Elements
  • Validator

UI Linear View Elements

Classes

Projection

class that calculates a pixel width based off of elapsed time

Block

React class that renders a block with a set position and width, one of the main visual elements of the ghant chart

LinearView

React class that renders the main veiw of the ghant chart Props:

MomentBackground

react class that renders header cells

MomentHeader

Params

Row

react class to render a ghant chart row

Projection

class that calculates a pixel width based off of elapsed time

Kind: global class

new Projection(pixelValue, startValue, stopValue)

ParamTypeDescription
pixelValuenumberthe base unit of time for one pixel
startValuenumberstart of the block
stopValuenumberend of the block

Block

React class that renders a block with a set position and width, one of the main visual elements of the ghant chart

Kind: global class
Properties

NameTypeDescription
x1numberstarting x value of the element
x2numberending x value of the element
onRolloverfunctionrollover functionality
onClickfunctiononClick functionality
dataanyadded to the rollover and click function callbacks
classNamestringclass to be applied to the element
styleobjectcss properties to be applied to the element
childrennodechildren to be rendered in the element

LinearView

React class that renders the main veiw of the ghant chart Props:

Kind: global class
Properties

NameTypeDescription
rowClassfunction \stringreturn className for rowData
blockClassfunction \stringreturn className for block
rowAccessfunctionreturn array of rows from data
onClickfunctioncallback when a block is clicked
onClickfunctioncallback when a block is clicked
startAccessfunctionreturns start value from a block
stopAccessfunctionreturns stop value from a block
hScrollcomponentcustom horizontal scrollbar component
vScrollcomponentcustom vertical scrollbar component
blockStylizerfunctionfunction( item, project, startValue stopValue, x1, x2 ) and returns { className, style, children } options for the block. Good for dynamic styling
setScrollTopfunctionfunction to be used to set the scrollTop value of the element

MomentBackground

react class that renders header cells

Kind: global class
Properties

NameTypeDescription
projectionprojectionthe projection used to create the header
unitstringthe unit used to calculate the group. 'day', 'month', etc
formatstringif present, moment.format( format ) will be used to create the label
dynamicClassfunctionif present, this function will be invoked with dynamicClass( moment, width, left, right ) and should return a className to add to the cell.
classNamestringthe className to apply to the background
cellClassNamestringthe className to apply to each cell

MomentHeader

Params

Kind: global class
Properties

NameTypeDescription
projectionprojectionthe projection used to create the header
unitstringthe unit used to calculate the group. 'day', 'month', etc
formatstringif present, moment.format( format ) will be used to create the label
valuestring \functionif this is a function, it will be invoked with value( moment, width, left, right ) and the function should return a stringcomponent for the label. If value is a string, momentvalue will be invoked (ie 'date' will return the day of the month)
classNamestringthe className for the label
clipbooleanif true, the positions of the header cell will be clipped to the projection time. This is useful for left or right aligning labels like month
classNamestringthe className to apply to the header
cellClassNamestringthe className to apply to each cell

Row

react class to render a ghant chart row

Kind: global class
Properties

NameTypeDescription
onRolloverfunctionrollover functionality
onClickfunctiononClick functionality
rowDataanyadded to the rollover and click function callbacks
classNamestringclass to be applied to the element
styleobjectcss properties to be applied to the element
blockAccessfunctionaccessor to get block data from row data
startAccessfunctionaccessor to get the start time from the data
stopAccessfunctionaccessor to get the stop time from the data
blockStylizerfunctioncalculates the style for the block
blockClassstringclass to be applied to the blocks
projectionProjectioninstance of the projection class
← UI ElementsUI Mapbox Elements →
  • Classes
  • Projection
    • new Projection(pixelValue, startValue, stopValue)
  • Block
  • LinearView
  • MomentBackground
  • MomentHeader
  • Row
Leverege Platform
Docs
Overview
Connect
FacebookLinkedInTwitter
Facebook Open Source