Namespaces
Members
-
<static> _newDateCheck :Object
-
Contains functions to check the date
All functions expect a date object, and return a boolean for qualification
Type:
- Object
- Source:
Properties:
Name Type Description enableDatefunction Date exists in enableDates option
whiteDatefunction Date exists in whiteDates option
notTodayfunction Date is today
maxYearfunction Date is beyond maxYear
minYearfunction Date is prior to minYear
afterTodayfunction Date is after today
beforeTodayfunction Date is before today
minDaysfunction Date is before minimum
maxDaysfunction Date is after maximum
minHourfunction Time is before minimum
maxHourfunction Time is after maximum
minTimefunction Time is before minimum
maxTimefunction Time is after maximum
validHoursfunction Hour is in validHours option
blackDaysfunction Day is in blackDays option
blackDatesfunction Date is in blackDates
blackDatesRecfunction Date is in blackDatesRec
blackDatesPeriodfunction Date is in blackDatesPeriod
-
<static> _ThemeDateCK :Object
-
Contains functions to choose the appropriate theme.
All functions expect a date object, and return a boolean for qualification
Type:
- Object
- Source:
Properties:
Name Type Description selectedfunction Date is currently selected
todayfunction Date is today
highDatesfunction Date is in the highDates array
highDatesAltfunction Date is in the highDatesAlt array
highDatesRecfunction Date is referenced in the highDatesRec option
highDatesPeriodfunction Date is referenced in the highDatesPeriod option
highDaysfunction Day is in the highDays array
-
<static> baseID :string
-
ID of the datebox Input
Type:
- string
- Source:
-
<static> d :Object
-
Display elements
Type:
- Object
- Source:
Properties:
Name Type Description inputobject jQuery input element
wrapobject JQuery input element parent
mainWrapobject Control HTML wrap
intHTMLobject Contol HTML insides
-
<static> dateOK :boolean
-
The selected date is valid
Type:
- boolean
- Source:
-
<static> icons :Object
-
Widget Icons
Type:
- Object
- Source:
Properties:
Name Type Description nextstring Next Chevron
prevstring Previous Chevron
plusstring Plus Sign
minusstring Minus Sign
checkstring Check Mark
cancelstring X Mark, Cancel, Close
gotostring Goto symbol
clearstring Trash Can
clockstring Clock
calendarstring Calendar
getIconfunction Retrieve an icon by name (override with SVG)
-
<static> initDate :object
-
JavaScript date object, initialization date
Type:
- object
- Source:
-
<static> initSelector :string
-
Selector to auto-enhance
Type:
- string
- Source:
-
<static> lastDuration :number
-
Last entered duration in seconds
Type:
- number
- Source:
-
<static> lastDurationA :array
-
Last entered duration, [ days, hours, minutes, seconds ]
Type:
- array
- Source:
-
<static> options :Object
-
Widget Options
Type:
- Object
- Source:
-
<static> theDate :object
-
JavaScript date object, current date
Type:
- object
- Source:
Methods
-
<static> __(Index)
-
Find a i18n string (gettext of a sort)
This also handles the option overrideKeyName system, and falls back to
defaults before finally admitting defeat.Parameters:
Name Type Description Indexstring to find
- Source:
Returns:
Value of i18n entry
- Type
- *
-
<static> __fmt()
-
Get the most apporopriate formatting string depending on mode.
Includes an override setting for parseDate utility function.
- Source:
Returns:
Format string
- Type
- string
-
<static> _btwn(value, low, high)
-
Checks if a number is between 2 other (non-inclusive)
i.e. Valid hours are 0...23, so _btwn(#, -1, 24)
Parameters:
Name Type Description valuenumber Number to check
lownumber Lower bound
highnumber Upper bound
- Source:
Returns:
True if number is between low and high
- Type
- boolean
-
<static> _cal_ThemeDate(javascript, dispMonth)
-
Apply theme information for a date
Parameters:
Name Type Description javascriptobject Date Object
dispMonthnumber Current month of display
- Source:
Returns:
Theme information
-
<static> _check()
-
Check if the date is good - older method.
Also sets JTSageDateBox.dateOK
- Source:
Returns:
Date is good
- Type
- boolean
-
<static> _create()
-
Create the widget, called automatically on initilization
- Source:
-
<static> _dbox_enter(item)
-
This handles manual input to the input boxes in datebox, timebox,
durationbox, and datetimebox.Parameters:
Name Type Description itemobject jQuery input object
- Source:
-
<static> _dbox_run_update(shortRun)
-
Update the input boxes in the control
Parameters:
Name Type Description shortRunboolean Use shortrun (skip checking the date and setting the header)
- Source:
-
<static> _destroy()
-
Destroy the DateBox widget and data
- Source:
-
<static> _doBottomButtons(useSet)
-
Actually apply the bottom buttons to the control
Parameters:
Name Type Description useSetboolean Allow the set button to be displayed
- Source:
Returns:
jQuery Object.
- Type
- object
-
<static> _doIndic()
-
Find all numbers in control and replace with eastern arabic
- Source:
-
<static> _dRep(Text, -1)
-
Convert a digit to Indic or Arabic numerals.
Parameters:
Name Type Description Textstring to alter
-1number to go back to western arabic, to eastern arabic otherwise
- Source:
Returns:
Altered text
- Type
- string
-
<static> _dur(ms)
-
Break the duration into component parts
Parameters:
Name Type Description msnumber Duration, in milliseconds
- Source:
Returns:
[ days, hours, minutes, seconds ]
- Type
- array
-
<static> _event(e, p)
-
Handle events of the "datebox" type.
Valid events:
- close : Close the control
- open : Open the control
- set : Change the date (p.value == date Object or date String)
- doset : Populate the date
- dooffset : Offset the date (p.value == amount, p.type == field)
- dorefresh : Refresh the display
- doclear : Clear the input
- clear : Re-read the input?
Parameters:
Name Type Description eobject jQuery event
pobject DateBox event
Properties
Name Type Description closeCancelboolean No idea what this does.
methodstring Event method to run
value* Can be a date object, date string, or amount to offset date
typestring Field to offset
- Source:
-
<static> _fbox_do_dur_math(term, offset, position)
-
Get the numbers for duration box, also deal with breaks on 24 hrs, 60 min, 60 sec.
Parameters:
Name Type Description termstring Field we are working on: d,h,i,s
offsetnumber Amount +/- from current
positionnumber Position in the display.
- Source:
Returns:
Text to display
- Type
- string
-
<static> _fbox_do_roll_math(term, offset)
-
Find the appropriate tern for a flipbox element
Parameters:
Name Type Description termstring Which element to work on: y,m,d,h,i,s,a
offsetnumber +/- from the current
- Source:
Returns:
Text to display
- Type
- string
-
<static> _fixstepper(order)
-
This makes durationStep apply to the least precise duration
field. Stepping an earlier field has rather unexpected results.Parameters:
Name Type Description orderarray Field display order
- Source:
-
<static> _formatter(format, date, allowArIn)
-
Format a date with a given string format.
Parameters:
Name Type Description formatstring Text representation of the format
dateobject JavaScript date to be formatted
allowArInboolean Allow indic number translation, default true
- Source:
Returns:
Formatted Date
- Type
- string
-
<static> _getCleanDur()
-
Clean up the duration amount.
Checks for negatives, and applies minDur/maxDur if set
Returns nothing but sets JTSageDateBox.lastDuration and
JTSageDateBox.lastDurationA- Source:
-
<static> _getFldOrder(mode)
-
Get the appropriate filed order for the mode
Parameters:
Name Type Description modestring Mode of operation
- Source:
Returns:
Field order
- Type
- array
-
<static> _getLongOptions(element)
-
Get the "long" version of the options from the input
Parameters:
Name Type Description elementObject jQuery object, original input element
- Source:
Returns:
Found elements, shallow object
- Type
- Object
-
<static> _grabLabel()
-
Finds the most appropriate label for the DateBox.
0, overrideDialogLabel, if set
- Placeholder text, if set
- Title attribute, if set
- Label attached to input, if found
- boolean false
- Source:
Returns:
Label for DateBox
- Type
- string
-
<static> _makeDate(Date, When)
-
Attempt to parse a date string. Format is pulled from JTSageDateBox.__fmt
Parameters:
Name Type Description Datestring string to parse
Whenboolean true, return an array instead with the status of the parse as arr[1]
- Source:
Returns:
JavaScript Date Object
- Type
- object
-
<static> _minStepFix()
-
Fix minutes of the date based on minuteStep option.
Round according to minStepRound
- Source:
-
<static> _n(val, def)
-
Instead of a negative val, return a defautl def
Parameters:
Name Type Description valnumber Value to check
defnumber Default if value is negative
- Source:
Returns:
OK or changed value
- Type
- number
-
<static> _newDateChecker(testDate)
-
Check if the date is valid.
Note both failrule and passrule can be false if the date is valid but not
explicitly valid.Parameters:
Name Type Description testDateobject - Source:
Returns:
-
<static> _offset(mode, amount, update)
-
This method offsets the current date. Do it in such a way that rollover can be prevented
Parameters:
Name Type Description modestring Element to shift
amountnumber Amount to shift +/-
updateboolean Set to false, will not update display
- Source:
-
<static> _pa(arr, date)
-
This cleans un-needed information from a date.
Returns a new date, does not alter reference.
Always sets milliseconds to 0.
When 2nd argument is a boolean, returns a date of Y-M-DT00:00:00 using arr
When 2nd argument is a date, returns [date]T(arg[0][0]):(arg[0][1]):(arg[0][2])
Parameters:
Name Type Description arrarray h,m,s or y,m,d depending on arg[1]
dateobject | boolean Date object, or boolean false
- Source:
Returns:
JavaScript date object
- Type
- object
-
<static> _pickRanges(dispMonth, dispYear, realYear, relative)
-
Generate the ranges (data contents) of the month and year pickers
Parameters:
Name Type Description dispMonthnumber Current month displayed
dispYearnumber Current year displayed
realYearnumber Today's year
relativeboolean Year is realtive to real current year, not selected year
- Source:
Returns:
- Type
- _pickRanges_Return
-
<static> _posZero(test)
-
Make sure a position number isn't less than zero
Parameters:
Name Type Description testnumber Number to test
- Source:
Returns:
Resulting number
- Type
- number
-
<static> _prepFunc(Value)
-
Prep function, pull from global if needed
Parameters:
Name Type Description Valuemixed of function option
- Source:
Returns:
Function, or false
- Type
- mixe
-
<static> _setOption(Option, Option)
-
Set an option, then refresh display
Parameters:
Name Type Description Optionstring Name
Optionstring Value
- Source:
-
<static> _slide_ThemeDate(javascript)
-
Apply theme information for a date
Parameters:
Name Type Description javascriptobject Date Object
- Source:
Returns:
Theme information
-
<static> _startOffset(date)
-
Alter a date by the startOffset values.
Parameters:
Name Type Description dateobject JavaScript date object
- Source:
Returns:
JavaScript date object
- Type
- object
-
<static> _stdSel(data, id, cls)
-
Create a simple select html element
Parameters:
Name Type Description dataArray.<Array> Each inside array is [ value, title, selected(bool) ]
idstring HTML ID for the select
clsstring Class for the select
- Source:
Returns:
Completed select element
- Type
- String
-
<static> _t(Object)
-
Shortcut method to run a trigger. Used to cut quite a few characters from minified output
Parameters:
Name Type Description Objectobject to pass to trigger
- Source:
-
<static> _zPad(number, pad)
-
Zero pad a number
Parameters:
Name Type Description numbernumber Number to alter
padstring If pad is "-", do nothing
- Source:
Returns:
Formatted number
- Type
- string
-
<static> applyMinMax(refresh, override)
-
Apply the HTML min/max attributes (minDate / maxDate)
Parameters:
Name Type Description refreshboolean Refresh the display when done
overrideboolean Allow overriding minDate/maxDate if already set
- Source:
-
<static> callFormat(format, date, allowArIn)
-
Format a date via JTSageDateBox._makeDate
Parameters:
Name Type Description formatstring Format string to use
dateobject Date to format
allowArInboolean Allow indic number translation, default true
- Source:
Returns:
Formatted date
- Type
- string
-
<static> close()
-
Close the DateBox widget
- Source:
-
<static> dateVisible()
-
Ask if the currently selected date is visible in the display
- Source:
Returns:
True on date is visible
- Type
- boolean
-
<static> disable()
-
Disable the control
- Source:
-
<static> enable()
-
Enable the control
- Source:
-
<static> getCalEndGrid()
-
Return last date of visible calendar grid
- Source:
Returns:
JavaScript Date Object
- Type
- object
-
<static> getCalStartGrid()
-
Return first date of visible calendar grid
- Source:
Returns:
JavaScript Date Object
- Type
- object
-
<static> getDropPosition()
-
Find position for dropdown
We do all of the possible calculations every time. Simple math is cheap.
- Source:
Returns:
CSS for the widget in dropdown mode.
- Type
- object
-
<static> getLastDur()
-
Get the current duration
- Source:
Returns:
Current duration
- Type
- number
-
<static> getModalPosition()
-
Find position for modal
- Source:
Returns:
CSS for the datebox in modal mode
- Type
- object
-
<static> getOption(opt)
-
Get the value of an option, auto-search the i18n values (first)
Parameters:
Name Type Description optstring Option name
- Source:
Returns:
Option value
- Type
- string
-
<static> getSelectedDate()
-
Get the currently selected date
- Source:
Returns:
Current Date, JavaScript date object
- Type
- object
-
<static> getTheDate()
-
Get the current date
- Source:
Returns:
Current Date, JavaScript date object
- Type
- object
-
<static> isInCalGrid(JavaScript)
-
Is the specified date in the visible calendar grid?
Parameters:
Name Type Description JavaScriptobject Date Object
- Source:
Returns:
True = yes it is
- Type
- boolean
-
<static> isSelectedInCalGrid()
-
Is the currently selected date in the visible calendar grid?
- Source:
Returns:
True = yes it is
- Type
- boolean
-
<static> open()
-
Open the DateBox widget
- Source:
-
<static> parseDate(format, strdate)
-
Parse an arbitrary date with an arbitrary format
Parameters:
Name Type Description formatstring Format to parse
strdatestring String to parse
- Source:
Returns:
JavaScript date
- Type
- object
-
<static> parseISO(strdate)
-
Parse a string ISO date
Parameters:
Name Type Description strdatestring ISO string to parse (YYYY-MM-DD)
- Source:
Returns:
JavaScript date
- Type
- object
-
<static> refresh()
-
Refresh the display
- Source:
-
<static> setTheDate(newDate)
-
Set the date.
When passing strings, date must be formatted exactly how DateBox would do it.
Parameters:
Name Type Description newDatestring | object JavaScript date or string in proper format
- Source:
-
<static> style_attach(isInline)
-
Find the attacment point for the control
Parameters:
Name Type Description isInlineboolean control is being inlined
- Source:
Returns:
jQuery attachment point
- Type
- object
-
<static> style_btn(theme, contents)
-
Make a button
Parameters:
Name Type Description themearray Theme class and icon for the button
contentsstring Text contents of the button (if any)
- Source:
Returns:
Created button
- Type
- string
-
<static> style_btnGrp(collapse)
-
Make a button group
Parameters:
Name Type Description collapseboolean Attempt to display buttons on one line
- Source:
Returns:
jQuery object of a button group that buttons can be appended to
- Type
- object
-
<static> style_btnGrp(collapse)
-
Make a button group
Parameters:
Name Type Description collapseboolean Attempt to display buttons on one line
- Source:
Returns:
jQuery object of a button group that buttons can be appended to
- Type
- object
-
<static> style_calBtn(data, totalElements)
-
Create a clickable box for each grid item in calbox.
MUST have the "dbEvent" class
Parameters:
Name Type Description dataobject Date information object
Properties
Name Type Description badboolean True if the date is invalid
goodboolean True if the date is valid
themestring Theme class for the button
displayTextstring Text of the date
dateObjobject Date object
totalElementsnumber Number of elements in the row ( 7 or 8 )
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_calBtn(data, totalElements)
-
Create a clickable box for each grid item in calbox.
MUST have the "dbEvent" class
Parameters:
Name Type Description dataobject Date information object
Properties
Name Type Description badboolean True if the date is invalid
goodboolean True if the date is valid
themestring Theme class for the button
displayTextstring Text of the date
dateObjobject Date object
totalElementsnumber Number of elements in the row ( 7 or 8 )
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_calGrid()
-
Create the calbox grid container. Probably a table
- Source:
Returns:
jQuery object
- Type
- object
-
<static> style_calGrid()
-
Create the calbox grid container. Probably a table
- Source:
Returns:
jQuery object
- Type
- object
-
<static> style_calRow()
-
Create a calbox grid row. Probably a tr
- Source:
Returns:
jQuery object
- Type
- object
-
<static> style_calRow()
-
Create a calbox grid row. Probably a tr
- Source:
Returns:
jQuery object
- Type
- object
-
<static> style_dateList(listLabel, list, theme, ctlCls)
-
Make the calbox/slidebox drop down quick pick list.
Consider using _stdSel()
Parameters:
Name Type Description listLabelstring Label for the list
listarray Containing arrays of [ value, text, selected (boolean) ]
themestring Theme class
ctlClsstring Control class for select
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_dateList(listLabel, list, theme, ctlCls)
-
Make the calbox/slidebox drop down quick pick list.
Consider using _stdSel()
Parameters:
Name Type Description listLabelstring Label for the list
listarray Containing arrays of [ value, text, selected (boolean) ]
themestring Theme class
ctlClsstring Control class for select
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_dboxCtr()
-
Make the datebox mode container.
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_dboxCtr()
-
Make the datebox mode container.
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_dboxCtrl(prevBtn, nextBtn, mainCls, label, inTheme)
-
Make a datebox +/-/input control
Next button MUST have "dbBoxNext" class
Previous button MUST have "dbBoxPrev" class
Container must have "mainCls"Parameters:
Name Type Description prevBtnstring Previous button icon (name or SVG) & class
nextBtnstring Next button icon (name of SVG) & class
mainClsstring Class for the control (input type)
labelstring Label, if needed
inThemestring Theme for inputs
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_dboxCtrl(prevBtn, nextBtn, mainCls, label, inTheme)
-
Make a datebox +/-/input control
Next button MUST have "dbBoxNext" class
Previous button MUST have "dbBoxPrev" class
Container must have "mainCls"Parameters:
Name Type Description prevBtnstring Previous button icon (name or SVG) & class
nextBtnstring Next button icon (name of SVG) & class
mainClsstring Class for the control (input type)
labelstring Label, if needed
inThemestring Theme for inputs
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_dboxRow()
-
Make the datebox control row
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_dboxRow()
-
Make the datebox control row
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxCtr(size)
-
Make the container for the flipbox
Parameters:
Name Type Description sizenumber Height CSS property
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxCtr(size)
-
Make the container for the flipbox
Parameters:
Name Type Description sizenumber Height CSS property
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxDurLbl(text, items)
-
Make a flibox label
Parameters:
Name Type Description textstring Text of the label
itemsnumber Total number of items
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxDurLbl(text, items)
-
Make a flibox label
Parameters:
Name Type Description textstring Text of the label
itemsnumber Total number of items
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxDurLbls()
-
Make a container for flipbox labels
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxDurLbls()
-
Make a container for flipbox labels
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxLens()
-
Make the flipbox lens
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxLens()
-
Make the flipbox lens
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxPos()
-
Position the flip elements. Overrides the base function if it exists
- Source:
-
<static> style_fboxPos()
-
Position the flip elements. Overrides the base function if it exists
- Source:
-
<static> style_fboxRollCld(text, cls)
-
Make a flipbox element (innermost) - usually a LI
Parameters:
Name Type Description textstring clsstring - Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxRollCld(text, cls)
-
Make a flipbox element (innermost) - usually a LI
Parameters:
Name Type Description textstring clsstring - Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxRollCtr(total)
-
Make a flipbox roller container (outermost)
Parameters:
Name Type Description totalnumber Number of items
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxRollCtr(total)
-
Make a flipbox roller container (outermost)
Parameters:
Name Type Description totalnumber Number of items
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxRollPrt()
-
Make a flipbox roller container (middle) - usually a UL
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_fboxRollPrt()
-
Make a flipbox roller container (middle) - usually a UL
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_inBtn(icon, title)
-
Create the open button that is added to the input
MUST contain dbOpenButton class. (outer)
Parameters:
Name Type Description iconstring Icon to use (name or SVG)
titlestring Hover text for the button
- Source:
Returns:
Rendered HTML of the open button
- Type
- string
-
<static> style_inBtn(icon, title)
-
Create the open button that is added to the input
MUST contain dbOpenButton class. (outer)
Parameters:
Name Type Description iconstring Icon to use (name or SVG)
titlestring Hover text for the button
- Source:
Returns:
Rendered HTML of the open button
- Type
- string
-
<static> style_inHide()
-
Hide the input element completely.
- Source:
-
<static> style_inNoBtn(originalInputWrap)
-
When not using the open button, we may need to alter the wrap class differently
Parameters:
Name Type Description originalInputWrapobject jQuery object
- Source:
-
<static> style_inNoBtn(originalInputWrap)
-
When not using the open button, we may need to alter the wrap class differently
Parameters:
Name Type Description originalInputWrapobject jQuery object
- Source:
-
<static> style_inWrap(originalInput, theme)
-
Wrap the original input in a div so we can add a button to it
Parameters:
Name Type Description originalInputobject Original input element, jQuery object
themestring Theme class
- Source:
Returns:
jQuery object now wrapped with some sort of div
- Type
- object
-
<static> style_inWrap(originalInput, theme)
-
Wrap the original input in a div so we can add a button to it
Parameters:
Name Type Description originalInputobject Original input element, jQuery object
themestring Theme class
- Source:
Returns:
jQuery object now wrapped with some sort of div
- Type
- object
-
<static> style_mainHead(text, themeBar, themeButton)
-
Make the header for every mode
Close button MUST include the "dbCloser" class.
Parameters:
Name Type Description textstring Text of the header
themeBarstring Theme class for the header
themeButtonstring Icon & Theme for the close button
- Source:
Returns:
Rendered HTML
- Type
- string
-
<static> style_picker(ranges, theme, monthCtl, yearCtl)
-
Create the year and month picker for calbox / slidebox
Parameters:
Name Type Description rangesobject Year and Month arrays
Properties
Name Type Description yeararray Containing arrays of [ value, text, selected (boolean) ]
montharray Containing arrays of [ value, text, selected (boolean) ]
themestring Theme class for controls
monthCtlstring Control class for month picker
yearCtlstring Control class for year picker
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_picker(ranges, theme, monthCtl, yearCtl)
-
Create the year and month picker for calbox / slidebox
Parameters:
Name Type Description rangesobject Year and Month arrays
Properties
Name Type Description yeararray Containing arrays of [ value, text, selected (boolean) ]
montharray Containing arrays of [ value, text, selected (boolean) ]
themestring Theme class for controls
monthCtlstring Control class for month picker
yearCtlstring Control class for year picker
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_pnHead(txt, prevBtn, nextBtn, prevCtl, nextCtl)
-
Make the header for calbox / slidebox
Parameters:
Name Type Description txtstring Text to display
prevBtnstring Previous button icon (name or SVG) & class
nextBtnstring Next button icon (name or SVG) & class
prevCtlstring Control class for previous button
nextCtlstring Control class for next button
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_pnHead(txt, prevBtn, nextBtn, prevCtl, nextCtl)
-
Make the header for calbox / slidebox
Parameters:
Name Type Description txtstring Text to display
prevBtnstring Previous button icon (name or SVG) & class
nextBtnstring Next button icon (name or SVG) & class
prevCtlstring Control class for previous button
nextCtlstring Control class for next button
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_slideBtn(data)
-
Create a clickable box for each grid date in slidebox.
MUST have the "dbEventS" class
Parameters:
Name Type Description dataobject Date information object
Properties
Name Type Description badboolean True if the date is invalid
goodboolean True if the date is valid
themestring Theme class for the button
dateObjobject Date object
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_slideBtn(data)
-
Create a clickable box for each grid date in slidebox.
MUST have the "dbEventS" class
Parameters:
Name Type Description dataobject Date information object
Properties
Name Type Description badboolean True if the date is invalid
goodboolean True if the date is valid
themestring Theme class for the button
dateObjobject Date object
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_slideCtrl(eventCls, theme)
-
Create next/prev week buttons for slidebox
Parameters:
Name Type Description eventClsstring The event class. Should be placed on the button
themestring Icon to use for button ( name or SVG ) & theme
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_slideCtrl(eventCls, theme)
-
Create next/prev week buttons for slidebox
Parameters:
Name Type Description eventClsstring The event class. Should be placed on the button
themestring Icon to use for button ( name or SVG ) & theme
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_slideGrid()
-
Make the grid container for slidebox (usually a table)
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_slideGrid()
-
Make the grid container for slidebox (usually a table)
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_slideRow()
-
Make the grid for for slidebox (usually a TR)
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_slideRow()
-
Make the grid for for slidebox (usually a TR)
- Source:
Returns:
jQuery Object
- Type
- object
-
<static> style_subHead(text)
-
Make an internal header ( datebox & flipbox )
MUST have the "dbHeader" class
Parameters:
Name Type Description textstring Text to display
- Source:
Returns:
jQuery object
- Type
- object
-
<static> style_subHead(text)
-
Make an internal header ( datebox & flipbox )
MUST have the "dbHeader" class
Parameters:
Name Type Description textstring Text to display
- Source:
Returns:
jQuery object
- Type
- object