com.jwebmp.plugins.bs4.datetimepicker.options.BS4DateTimeWidgetPositioningOptions Maven / Gradle / Ivy
Show all versions of jwebmp-bootstrap4-date-time-picker Show documentation
package com.jwebmp.plugins.bs4.datetimepicker.options;
import com.jwebmp.core.htmlbuilder.javascript.JavaScriptPart;
/**
* Takes an object parameter that can contain two keys vertical and horizontal each having a value of 'auto', 'top', 'bottom' for vertical and 'auto', 'left', 'right' for
* horizontal which defines where the dropdown with the widget will appear relative to the input element the component is attached to.
*
* 'auto' is the default value for both horizontal and vertical keys and it tries to automatically place the dropdown in a position that is visible to the user. Usually you should
* not override those options unless you have a special need in your layout.
*/
public class BS4DateTimeWidgetPositioningOptions
extends JavaScriptPart
{
/**
* Place the time widget on the x
*/
private BS4DateTimeWidgetPositions horizontal;
/**
* Place the time widget on the y
*/
private BS4DateTimeWidgetPositions vertical;
/**
* Constructs a new instance of the BS4DateTimeWidgetPositioningOptions
*/
public BS4DateTimeWidgetPositioningOptions()
{
//Nothing Needed
}
/**
* Place the time widget on the y
*
* @return
*/
public BS4DateTimeWidgetPositions getVertical()
{
return vertical;
}
/**
* Place the time widget on the y
*
* @param vertical
*/
public void setVertical(BS4DateTimeWidgetPositions vertical)
{
this.vertical = vertical;
}
/**
* Place the time widget on the x
*
* @return
*/
public BS4DateTimeWidgetPositions getHorizontal()
{
return horizontal;
}
/**
* Place the time widget on the x
*
* @param horizontal
*/
public void setHorizontal(BS4DateTimeWidgetPositions horizontal)
{
this.horizontal = horizontal;
}
}