Copyright | (c) Sumit Shrawat 2015 David Davó 2021 |
---|---|
License | MIT |
Maintainer | david@ddavo.me |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data BoxStyleValue
- data OrientationValue
- data VideoFormatValue
- data ImageFormatValue
- data AudioFormatValue
- data BarStyleValue
- data ButtonStyleValue
- data FontWeightValue
- data FontStyleValue
- newtype PixCount = PixCount Integer
- pattern Style :: () => a ~ 'Style => SField a
- pattern Outputs :: () => a ~ 'Outputs => SField a
- pattern MsgID :: () => a ~ 'MsgID => SField a
- pattern Source :: () => a ~ 'Source => SField a
- pattern Target :: () => a ~ 'Target => SField a
- pattern ButtonWidth :: () => a ~ 'ButtonWidth => SField a
- pattern HandleColor :: () => a ~ 'HandleColor => SField a
- pattern BarColor :: () => a ~ 'BarColor => SField a
- pattern DescriptionWidth :: () => a ~ 'DescriptionWidth => SField a
- pattern FontWeight :: () => a ~ 'FontWeight => SField a
- pattern ButtonColor :: () => a ~ 'ButtonColor => SField a
- pattern Axes :: () => a ~ 'Axes => SField a
- pattern Buttons :: () => a ~ 'Buttons => SField a
- pattern Timestamp :: () => a ~ 'Timestamp => SField a
- pattern Connected :: () => a ~ 'Connected => SField a
- pattern Mapping :: () => a ~ 'Mapping => SField a
- pattern Name :: () => a ~ 'Name => SField a
- pattern Pressed :: () => a ~ 'Pressed => SField a
- pattern DateValue :: () => a ~ 'DateValue => SField a
- pattern Concise :: () => a ~ 'Concise => SField a
- pattern ShowRepeat :: () => a ~ 'ShowRepeat => SField a
- pattern Interval :: () => a ~ 'Interval => SField a
- pattern Repeat :: () => a ~ 'Repeat => SField a
- pattern Playing :: () => a ~ 'Playing => SField a
- pattern EnsureOption :: () => a ~ 'EnsureOption => SField a
- pattern Options :: () => a ~ 'Options => SField a
- pattern Controls :: () => a ~ 'Controls => SField a
- pattern Loop :: () => a ~ 'Loop => SField a
- pattern AutoPlay :: () => a ~ 'AutoPlay => SField a
- pattern VideoFormat :: () => a ~ 'VideoFormat => SField a
- pattern AudioFormat :: () => a ~ 'AudioFormat => SField a
- pattern Rows :: () => a ~ 'Rows => SField a
- pattern ContinuousUpdate :: () => a ~ 'ContinuousUpdate => SField a
- pattern Indent :: () => a ~ 'Indent => SField a
- pattern ReadOutMsg :: () => a ~ 'ReadOutMsg => SField a
- pattern SelectedIndex :: () => a ~ 'SelectedIndex => SField a
- pattern Titles :: () => a ~ 'Titles => SField a
- pattern BoxStyle :: () => a ~ 'BoxStyle => SField a
- pattern Children :: () => a ~ 'Children => SField a
- pattern ChangeHandler :: () => a ~ 'ChangeHandler => SField a
- pattern BarStyle :: () => a ~ 'BarStyle => SField a
- pattern ReadOutFormat :: () => a ~ 'ReadOutFormat => SField a
- pattern ReadOut :: () => a ~ 'ReadOut => SField a
- pattern BaseFloat :: () => a ~ 'BaseFloat => SField a
- pattern Orientation :: () => a ~ 'Orientation => SField a
- pattern UpperFloat :: () => a ~ 'UpperFloat => SField a
- pattern LowerFloat :: () => a ~ 'LowerFloat => SField a
- pattern FloatPairValue :: () => a ~ 'FloatPairValue => SField a
- pattern MinFloat :: () => a ~ 'MinFloat => SField a
- pattern MaxFloat :: () => a ~ 'MaxFloat => SField a
- pattern StepFloat :: () => a ~ 'StepFloat => SField a
- pattern FloatValue :: () => a ~ 'FloatValue => SField a
- pattern UpperInt :: () => a ~ 'UpperInt => SField a
- pattern LowerInt :: () => a ~ 'LowerInt => SField a
- pattern IntPairValue :: () => a ~ 'IntPairValue => SField a
- pattern MinInt :: () => a ~ 'MinInt => SField a
- pattern MaxInt :: () => a ~ 'MaxInt => SField a
- pattern StepInt :: () => a ~ 'StepInt => SField a
- pattern IntValue :: () => a ~ 'IntValue => SField a
- pattern Indices :: () => a ~ 'Indices => SField a
- pattern Icons :: () => a ~ 'Icons => SField a
- pattern Tooltips :: () => a ~ 'Tooltips => SField a
- pattern SelectionHandler :: () => a ~ 'SelectionHandler => SField a
- pattern Index :: () => a ~ 'Index => SField a
- pattern OptionalIndex :: () => a ~ 'OptionalIndex => SField a
- pattern OptionsLabels :: () => a ~ 'OptionsLabels => SField a
- pattern BoolValue :: () => a ~ 'BoolValue => SField a
- pattern ImageFormat :: () => a ~ 'ImageFormat => SField a
- pattern BSValue :: () => a ~ 'BSValue => SField a
- pattern ButtonStyle :: () => a ~ 'ButtonStyle => SField a
- pattern Icon :: () => a ~ 'Icon => SField a
- pattern Tooltip :: () => a ~ 'Tooltip => SField a
- pattern Placeholder :: () => a ~ 'Placeholder => SField a
- pattern StringValue :: () => a ~ 'StringValue => SField a
- pattern Disabled :: () => a ~ 'Disabled => SField a
- pattern SubmitHandler :: () => a ~ 'SubmitHandler => SField a
- pattern ClickHandler :: () => a ~ 'ClickHandler => SField a
- pattern Description :: () => a ~ 'Description => SField a
- pattern Height :: () => a ~ 'Height => SField a
- pattern Width :: () => a ~ 'Width => SField a
- pattern Layout :: () => a ~ 'Layout => SField a
- pattern DOMClasses :: () => a ~ 'DOMClasses => SField a
- pattern DisplayHandler :: () => a ~ 'DisplayHandler => SField a
- pattern ModelName :: () => a ~ 'ModelName => SField a
- pattern ModelModuleVersion :: () => a ~ 'ModelModuleVersion => SField a
- pattern ModelModule :: () => a ~ 'ModelModule => SField a
- pattern ViewName :: () => a ~ 'ViewName => SField a
- pattern ViewModuleVersion :: () => a ~ 'ViewModuleVersion => SField a
- pattern ViewModule :: () => a ~ 'ViewModule => SField a
- closeWidget :: IHaskellWidget w => w -> IO ()
- nestedObjectLookup :: Value -> [Text] -> Maybe Value
- data OutputMsg
- data Date
- newtype JSONByteString = JSONByteString ByteString
- data WidgetFieldPair
- = forall w f.(f ∈ WidgetFields w, HasKey f ~ 'True, RecAll Attr (WidgetFields w) ToPairs) => WidgetFieldPair (IPythonWidget w) (SField f)
- | EmptyWT
- data StyleWidget = forall w.RecAll Attr (WidgetFields w) ToPairs => StyleWidget (IPythonWidget w)
- data ChildWidget = forall w.RecAll Attr (WidgetFields w) ToPairs => ChildWidget (IPythonWidget w)
- setField :: (f ∈ WidgetFields w, IHaskellWidget (IPythonWidget w), ToPairs (Attr f)) => IPythonWidget w -> SField f -> FieldType f -> IO ()
- getField :: f ∈ WidgetFields w => IPythonWidget w -> SField f -> IO (FieldType f)
- properties :: IPythonWidget w -> IO ()
- triggerChange :: 'ChangeHandler ∈ WidgetFields w => IPythonWidget w -> IO ()
- triggerClick :: 'ClickHandler ∈ WidgetFields w => IPythonWidget w -> IO ()
- triggerSelection :: 'SelectionHandler ∈ WidgetFields w => IPythonWidget w -> IO ()
- triggerSubmit :: 'SubmitHandler ∈ WidgetFields w => IPythonWidget w -> IO ()
- triggerDisplay :: 'DisplayHandler ∈ WidgetFields w => IPythonWidget w -> IO ()
- unlink :: ('Source ∈ WidgetFields w, 'Target ∈ WidgetFields w, IHaskellWidget (IPythonWidget w)) => IPythonWidget w -> IO (IPythonWidget w)
- type ToggleButtonsStyle = IPythonWidget 'ToggleButtonsStyleType
- mkToggleButtonsStyle :: IO ToggleButtonsStyle
- type SliderStyle = IPythonWidget 'SliderStyleType
- mkSliderStyle :: IO SliderStyle
- type ProgressStyle = IPythonWidget 'ProgressStyleType
- mkProgressStyle :: IO ProgressStyle
- type DescriptionStyle = IPythonWidget 'DescriptionStyleType
- mkDescriptionStyle :: IO DescriptionStyle
- type ButtonStyle = IPythonWidget 'ButtonStyleType
- mkButtonStyle :: IO ButtonStyle
- type Link = IPythonWidget 'LinkType
- mkLink :: IO Link
- jslink :: WidgetFieldPair -> WidgetFieldPair -> IO Link
- type DirectionalLink = IPythonWidget 'DirectionalLinkType
- mkDirectionalLink :: IO DirectionalLink
- jsdlink :: WidgetFieldPair -> WidgetFieldPair -> IO DirectionalLink
- type TextArea = IPythonWidget 'TextAreaType
- mkTextArea :: IO TextArea
- type TextWidget = IPythonWidget 'TextType
- mkText :: IO TextWidget
- type PasswordWidget = IPythonWidget 'PasswordType
- mkPassword :: IO PasswordWidget
- type LabelWidget = IPythonWidget 'LabelType
- mkLabel :: IO LabelWidget
- type HTMLMathWidget = IPythonWidget 'HTMLMathType
- mkHTMLMath :: IO HTMLMathWidget
- type HTMLWidget = IPythonWidget 'HTMLType
- mkHTML :: IO HTMLWidget
- type ComboboxWidget = IPythonWidget 'ComboboxType
- mkCombobox :: IO ComboboxWidget
- type ToggleButtons = IPythonWidget 'ToggleButtonsType
- mkToggleButtons :: IO ToggleButtons
- type SelectionSlider = IPythonWidget 'SelectionSliderType
- mkSelectionSlider :: IO SelectionSlider
- type SelectionRangeSlider = IPythonWidget 'SelectionRangeSliderType
- mkSelectionRangeSlider :: IO SelectionRangeSlider
- type SelectMultiple = IPythonWidget 'SelectMultipleType
- mkSelectMultiple :: IO SelectMultiple
- type Select = IPythonWidget 'SelectType
- mkSelect :: IO Select
- type RadioButtons = IPythonWidget 'RadioButtonsType
- mkRadioButtons :: IO RadioButtons
- type Dropdown = IPythonWidget 'DropdownType
- mkDropdown :: IO Dropdown
- type OutputWidget = IPythonWidget 'OutputType
- mkOutput :: IO OutputWidget
- appendStdout :: OutputWidget -> Text -> IO ()
- appendStderr :: OutputWidget -> Text -> IO ()
- appendDisplay :: IHaskellDisplay a => OutputWidget -> a -> IO ()
- clearOutput :: OutputWidget -> IO ()
- clearOutput_ :: OutputWidget -> IO ()
- replaceOutput :: IHaskellDisplay a => OutputWidget -> a -> IO ()
- type VideoWidget = IPythonWidget 'VideoType
- mkVideo :: IO VideoWidget
- type ImageWidget = IPythonWidget 'ImageType
- mkImage :: IO ImageWidget
- type AudioWidget = IPythonWidget 'AudioType
- mkAudio :: IO AudioWidget
- type IntText = IPythonWidget 'IntTextType
- mkIntText :: IO IntText
- type IntRangeSlider = IPythonWidget 'IntRangeSliderType
- mkIntRangeSlider :: IO IntRangeSlider
- type Play = IPythonWidget 'PlayType
- mkPlay :: IO Play
- type IntSlider = IPythonWidget 'IntSliderType
- mkIntSlider :: IO IntSlider
- type IntProgress = IPythonWidget 'IntProgressType
- mkIntProgress :: IO IntProgress
- type BoundedIntText = IPythonWidget 'BoundedIntTextType
- mkBoundedIntText :: IO BoundedIntText
- type FloatText = IPythonWidget 'FloatTextType
- mkFloatText :: IO FloatText
- type FloatRangeSlider = IPythonWidget 'FloatRangeSliderType
- mkFloatRangeSlider :: IO FloatRangeSlider
- type FloatSlider = IPythonWidget 'FloatSliderType
- mkFloatSlider :: IO FloatSlider
- type FloatProgress = IPythonWidget 'FloatProgressType
- mkFloatProgress :: IO FloatProgress
- type FloatLogSlider = IPythonWidget 'FloatLogSliderType
- mkFloatLogSlider :: IO FloatLogSlider
- type BoundedFloatText = IPythonWidget 'BoundedFloatTextType
- mkBoundedFloatText :: IO BoundedFloatText
- type DatePicker = IPythonWidget 'DatePickerType
- mkDatePicker :: IO DatePicker
- type ControllerButton = IPythonWidget 'ControllerButtonType
- mkControllerButton :: IO ControllerButton
- type ControllerAxis = IPythonWidget 'ControllerAxisType
- mkControllerAxis :: IO ControllerAxis
- type Controller = IPythonWidget 'ControllerType
- mkController :: IO Controller
- type ColorPicker = IPythonWidget 'ColorPickerType
- mkColorPicker :: IO ColorPicker
- type Button = IPythonWidget 'ButtonType
- mkButton :: IO Button
- type VBox = IPythonWidget 'VBoxType
- mkVBox :: IO VBox
- type TabWidget = IPythonWidget 'TabType
- mkTab :: IO TabWidget
- type Accordion = IPythonWidget 'AccordionType
- mkAccordion :: IO Accordion
- type HBox = IPythonWidget 'HBoxType
- mkHBox :: IO HBox
- type GridBox = IPythonWidget 'GridBoxType
- mkGridBox :: IO GridBox
- type Box = IPythonWidget 'BoxType
- mkBox :: IO Box
- type ValidWidget = IPythonWidget 'ValidType
- mkValid :: IO ValidWidget
- type ToggleButton = IPythonWidget 'ToggleButtonType
- mkToggleButton :: IO ToggleButton
- type CheckBox = IPythonWidget 'CheckBoxType
- mkCheckBox :: IO CheckBox
Documentation
data BoxStyleValue Source #
Predefined styles for box widgets
Instances
ToJSON BoxStyleValue Source # | |
Defined in IHaskell.Display.Widgets.Common toJSON :: BoxStyleValue -> Value # toEncoding :: BoxStyleValue -> Encoding # toJSONList :: [BoxStyleValue] -> Value # toEncodingList :: [BoxStyleValue] -> Encoding # |
data OrientationValue Source #
Orientation values.
Instances
ToJSON OrientationValue Source # | |
Defined in IHaskell.Display.Widgets.Common toJSON :: OrientationValue -> Value # toEncoding :: OrientationValue -> Encoding # toJSONList :: [OrientationValue] -> Value # toEncodingList :: [OrientationValue] -> Encoding # |
data VideoFormatValue Source #
Video formats for VideoWidget
Instances
ToJSON VideoFormatValue Source # | |
Defined in IHaskell.Display.Widgets.Common toJSON :: VideoFormatValue -> Value # toEncoding :: VideoFormatValue -> Encoding # toJSONList :: [VideoFormatValue] -> Value # toEncodingList :: [VideoFormatValue] -> Encoding # | |
Show VideoFormatValue Source # | |
Defined in IHaskell.Display.Widgets.Common showsPrec :: Int -> VideoFormatValue -> ShowS # show :: VideoFormatValue -> String # showList :: [VideoFormatValue] -> ShowS # | |
Eq VideoFormatValue Source # | |
Defined in IHaskell.Display.Widgets.Common (==) :: VideoFormatValue -> VideoFormatValue -> Bool # (/=) :: VideoFormatValue -> VideoFormatValue -> Bool # |
data ImageFormatValue Source #
Image formats for ImageWidget
Instances
ToJSON ImageFormatValue Source # | |
Defined in IHaskell.Display.Widgets.Common toJSON :: ImageFormatValue -> Value # toEncoding :: ImageFormatValue -> Encoding # toJSONList :: [ImageFormatValue] -> Value # toEncodingList :: [ImageFormatValue] -> Encoding # | |
Show ImageFormatValue Source # | Image formats for ImageWidget |
Defined in IHaskell.Display.Widgets.Common showsPrec :: Int -> ImageFormatValue -> ShowS # show :: ImageFormatValue -> String # showList :: [ImageFormatValue] -> ShowS # | |
Eq ImageFormatValue Source # | |
Defined in IHaskell.Display.Widgets.Common (==) :: ImageFormatValue -> ImageFormatValue -> Bool # (/=) :: ImageFormatValue -> ImageFormatValue -> Bool # |
data AudioFormatValue Source #
Audio formats for AudioWidget
Instances
ToJSON AudioFormatValue Source # | |
Defined in IHaskell.Display.Widgets.Common toJSON :: AudioFormatValue -> Value # toEncoding :: AudioFormatValue -> Encoding # toJSONList :: [AudioFormatValue] -> Value # toEncodingList :: [AudioFormatValue] -> Encoding # | |
Show AudioFormatValue Source # | |
Defined in IHaskell.Display.Widgets.Common showsPrec :: Int -> AudioFormatValue -> ShowS # show :: AudioFormatValue -> String # showList :: [AudioFormatValue] -> ShowS # | |
Eq AudioFormatValue Source # | |
Defined in IHaskell.Display.Widgets.Common (==) :: AudioFormatValue -> AudioFormatValue -> Bool # (/=) :: AudioFormatValue -> AudioFormatValue -> Bool # |
data BarStyleValue Source #
Pre-defined bar styles
Instances
ToJSON BarStyleValue Source # | |
Defined in IHaskell.Display.Widgets.Common toJSON :: BarStyleValue -> Value # toEncoding :: BarStyleValue -> Encoding # toJSONList :: [BarStyleValue] -> Value # toEncodingList :: [BarStyleValue] -> Encoding # |
data ButtonStyleValue Source #
Pre-defined button styles
Instances
ToJSON ButtonStyleValue Source # | |
Defined in IHaskell.Display.Widgets.Common toJSON :: ButtonStyleValue -> Value # toEncoding :: ButtonStyleValue -> Encoding # toJSONList :: [ButtonStyleValue] -> Value # toEncodingList :: [ButtonStyleValue] -> Encoding # |
data FontWeightValue Source #
Font weight values
Instances
ToJSON FontWeightValue Source # | |
Defined in IHaskell.Display.Widgets.Common toJSON :: FontWeightValue -> Value # toEncoding :: FontWeightValue -> Encoding # toJSONList :: [FontWeightValue] -> Value # toEncodingList :: [FontWeightValue] -> Encoding # |
data FontStyleValue Source #
Font style values
Instances
ToJSON FontStyleValue Source # | |
Defined in IHaskell.Display.Widgets.Common toJSON :: FontStyleValue -> Value # toEncoding :: FontStyleValue -> Encoding # toJSONList :: [FontStyleValue] -> Value # toEncodingList :: [FontStyleValue] -> Encoding # |
Transforms the Integer to a String of pixels
Instances
ToJSON PixCount Source # | |
Defined in IHaskell.Display.Widgets.Common | |
Enum PixCount Source # | |
Defined in IHaskell.Display.Widgets.Common | |
Num PixCount Source # | |
Eq PixCount Source # | |
Ord PixCount Source # | |
Defined in IHaskell.Display.Widgets.Common |
pattern Style :: () => a ~ 'Style => SField a Source #
Reference to a Style widget with styling customizations
pattern Outputs :: () => a ~ 'Outputs => SField a Source #
The output messages synced from the frontend
pattern ButtonWidth :: () => a ~ 'ButtonWidth => SField a Source #
The width of each button
pattern HandleColor :: () => a ~ 'HandleColor => SField a Source #
Color of the slider handle
pattern DescriptionWidth :: () => a ~ 'DescriptionWidth => SField a Source #
Width of the description to the side of the control
pattern FontWeight :: () => a ~ 'FontWeight => SField a Source #
The font weight of the text
pattern ButtonColor :: () => a ~ 'ButtonColor => SField a Source #
Color of the button
pattern Timestamp :: () => a ~ 'Timestamp => SField a Source #
The last time the data from this gamepad was updated
pattern DateValue :: () => a ~ 'DateValue => SField a Source #
The value of the widget in date format
pattern ShowRepeat :: () => a ~ 'ShowRepeat => SField a Source #
Show the repeat toggle button on the widget
pattern Interval :: () => a ~ 'Interval => SField a Source #
The maximum interval for the play control
pattern Repeat :: () => a ~ 'Repeat => SField a Source #
Whether the control will repeat in a continuous loop
pattern EnsureOption :: () => a ~ 'EnsureOption => SField a Source #
If set, ensure the value is in options
pattern Controls :: () => a ~ 'Controls => SField a Source #
Specifies that video controls should be displayed
pattern Loop :: () => a ~ 'Loop => SField a Source #
When true, the video starts from the beginning after finishing
pattern VideoFormat :: () => a ~ 'VideoFormat => SField a Source #
The format of the image
pattern AudioFormat :: () => a ~ 'AudioFormat => SField a Source #
The format of the audio
pattern ContinuousUpdate :: () => a ~ 'ContinuousUpdate => SField a Source #
Update the value as the user types. If false, update on submission.
pattern Indent :: () => a ~ 'Indent => SField a Source #
Indent the control to align with other controls with a description
pattern ReadOutMsg :: () => a ~ 'ReadOutMsg => SField a Source #
Message displayed when the value is false
pattern SelectedIndex :: () => a ~ 'SelectedIndex => SField a Source #
The index of the selected page. Is nothing if no widgets are selected.
pattern ChangeHandler :: () => a ~ 'ChangeHandler => SField a Source #
A method called when the value changes in the fronted
pattern ReadOutFormat :: () => a ~ 'ReadOutFormat => SField a Source #
The format of the readout
pattern ReadOut :: () => a ~ 'ReadOut => SField a Source #
Whether to display the current value of the widget next to it
pattern Orientation :: () => a ~ 'Orientation => SField a Source #
Orientation of the widget
pattern UpperFloat :: () => a ~ 'UpperFloat => SField a Source #
Max value of a range widget
pattern LowerFloat :: () => a ~ 'LowerFloat => SField a Source #
Min value of a range widget
pattern FloatPairValue :: () => a ~ 'FloatPairValue => SField a Source #
Value of the widget as a float pair
pattern FloatValue :: () => a ~ 'FloatValue => SField a Source #
Value of the widget (float)
pattern IntPairValue :: () => a ~ 'IntPairValue => SField a Source #
The value of the widget as an int pair
pattern Icons :: () => a ~ 'Icons => SField a Source #
Icons names for each button (FontAwesome names without the fa- prefix)
pattern SelectionHandler :: () => a ~ 'SelectionHandler => SField a Source #
Method to be called when something is chosen
pattern OptionalIndex :: () => a ~ 'OptionalIndex => SField a Source #
Selected index, can be Nothing
pattern OptionsLabels :: () => a ~ 'OptionsLabels => SField a Source #
The labels for the options
pattern ImageFormat :: () => a ~ 'ImageFormat => SField a Source #
The format of the image
pattern ButtonStyle :: () => a ~ 'ButtonStyle => SField a Source #
Predefined styling for the button
pattern Placeholder :: () => a ~ 'Placeholder => SField a Source #
Placeholder text to display if nothing has been typed yet
pattern StringValue :: () => a ~ 'StringValue => SField a Source #
The value of the widget, of type string
pattern Disabled :: () => a ~ 'Disabled => SField a Source #
Whether the widget appears as disabled on the frontend
pattern SubmitHandler :: () => a ~ 'SubmitHandler => SField a Source #
Method to be called on submit
pattern ClickHandler :: () => a ~ 'ClickHandler => SField a Source #
Method to be called on click
pattern Description :: () => a ~ 'Description => SField a Source #
Description of the control
pattern DOMClasses :: () => a ~ 'DOMClasses => SField a Source #
CSS classes applied to widget DOM element
pattern DisplayHandler :: () => a ~ 'DisplayHandler => SField a Source #
A method to be called on display
pattern ModelModuleVersion :: () => a ~ 'ModelModuleVersion => SField a Source #
The model module version
pattern ModelModule :: () => a ~ 'ModelModule => SField a Source #
The model module string
pattern ViewModuleVersion :: () => a ~ 'ViewModuleVersion => SField a Source #
The view module version
pattern ViewModule :: () => a ~ 'ViewModule => SField a Source #
The view module string
closeWidget :: IHaskellWidget w => w -> IO () Source #
Close a widget's comm
nestedObjectLookup :: Value -> [Text] -> Maybe Value Source #
Makes a lookup on a value given a path of strings to follow
The date class from IPython
newtype JSONByteString Source #
Instances
ToJSON JSONByteString Source # | |
Defined in IHaskell.Display.Widgets.Types toJSON :: JSONByteString -> Value # toEncoding :: JSONByteString -> Encoding # toJSONList :: [JSONByteString] -> Value # toEncodingList :: [JSONByteString] -> Encoding # | |
IsString JSONByteString Source # | |
Defined in IHaskell.Display.Widgets.Types fromString :: String -> JSONByteString # | |
Eq JSONByteString Source # | |
Defined in IHaskell.Display.Widgets.Types (==) :: JSONByteString -> JSONByteString -> Bool # (/=) :: JSONByteString -> JSONByteString -> Bool # | |
Ord JSONByteString Source # | |
Defined in IHaskell.Display.Widgets.Types compare :: JSONByteString -> JSONByteString -> Ordering # (<) :: JSONByteString -> JSONByteString -> Bool # (<=) :: JSONByteString -> JSONByteString -> Bool # (>) :: JSONByteString -> JSONByteString -> Bool # (>=) :: JSONByteString -> JSONByteString -> Bool # max :: JSONByteString -> JSONByteString -> JSONByteString # min :: JSONByteString -> JSONByteString -> JSONByteString # |
data WidgetFieldPair Source #
This type only fits if the field is among the widget's fields, and it has a key
forall w f.(f ∈ WidgetFields w, HasKey f ~ 'True, RecAll Attr (WidgetFields w) ToPairs) => WidgetFieldPair (IPythonWidget w) (SField f) | |
EmptyWT |
Instances
ToJSON WidgetFieldPair Source # | |
Defined in IHaskell.Display.Widgets.Types toJSON :: WidgetFieldPair -> Value # toEncoding :: WidgetFieldPair -> Encoding # toJSONList :: [WidgetFieldPair] -> Value # toEncodingList :: [WidgetFieldPair] -> Encoding # |
data StyleWidget Source #
Can be used to put different styles in a same FieldType.
forall w.RecAll Attr (WidgetFields w) ToPairs => StyleWidget (IPythonWidget w) |
Instances
ToJSON StyleWidget Source # | |
Defined in IHaskell.Display.Widgets.Types toJSON :: StyleWidget -> Value # toEncoding :: StyleWidget -> Encoding # toJSONList :: [StyleWidget] -> Value # toEncodingList :: [StyleWidget] -> Encoding # |
data ChildWidget Source #
Can be used to put different widgets in a list. Useful for dealing with children widgets.
forall w.RecAll Attr (WidgetFields w) ToPairs => ChildWidget (IPythonWidget w) |
Instances
ToJSON ChildWidget Source # | |
Defined in IHaskell.Display.Widgets.Types toJSON :: ChildWidget -> Value # toEncoding :: ChildWidget -> Encoding # toJSONList :: [ChildWidget] -> Value # toEncodingList :: [ChildWidget] -> Encoding # |
setField :: (f ∈ WidgetFields w, IHaskellWidget (IPythonWidget w), ToPairs (Attr f)) => IPythonWidget w -> SField f -> FieldType f -> IO () Source #
Change the value for a field, and notify the frontend about it. Doesn't work if the field is read only.
getField :: f ∈ WidgetFields w => IPythonWidget w -> SField f -> IO (FieldType f) Source #
Get the value of a field.
properties :: IPythonWidget w -> IO () Source #
Displays on stdout the properties (and its types) of a given widget
triggerChange :: 'ChangeHandler ∈ WidgetFields w => IPythonWidget w -> IO () Source #
Called when the value of an attribute is changed on the front-end
triggerClick :: 'ClickHandler ∈ WidgetFields w => IPythonWidget w -> IO () Source #
Called when the button is clicked
triggerSelection :: 'SelectionHandler ∈ WidgetFields w => IPythonWidget w -> IO () Source #
Called when a selection is made in a selection widget
triggerSubmit :: 'SubmitHandler ∈ WidgetFields w => IPythonWidget w -> IO () Source #
Called when the text is submited in a text widget (or combobox/password)
triggerDisplay :: 'DisplayHandler ∈ WidgetFields w => IPythonWidget w -> IO () Source #
Called when the widget is displayed on the notebook
unlink :: ('Source ∈ WidgetFields w, 'Target ∈ WidgetFields w, IHaskellWidget (IPythonWidget w)) => IPythonWidget w -> IO (IPythonWidget w) Source #
Allows you to unlink a jslink
type ToggleButtonsStyle = IPythonWidget 'ToggleButtonsStyleType Source #
A ToggleButtonsStyle
represents a Button Style from IPython.html.widgets.
mkToggleButtonsStyle :: IO ToggleButtonsStyle Source #
Create a new button style
type SliderStyle = IPythonWidget 'SliderStyleType Source #
A SliderStyle
represents a Button Style from IPython.html.widgets.
mkSliderStyle :: IO SliderStyle Source #
Create a new button style
type ProgressStyle = IPythonWidget 'ProgressStyleType Source #
A ProgressStyle
represents a Button Style from IPython.html.widgets.
mkProgressStyle :: IO ProgressStyle Source #
Create a new button style
type DescriptionStyle = IPythonWidget 'DescriptionStyleType Source #
A DescriptionStyle
represents a Button Style from IPython.html.widgets.
mkDescriptionStyle :: IO DescriptionStyle Source #
Create a new button style
type ButtonStyle = IPythonWidget 'ButtonStyleType Source #
A ButtonStyle
represents a Button Style from IPython.html.widgets.
mkButtonStyle :: IO ButtonStyle Source #
Create a new button style
type Link = IPythonWidget 'LinkType Source #
An Link
represents a Link widget from IPython.html.widgets.
jslink :: WidgetFieldPair -> WidgetFieldPair -> IO Link Source #
An easier constructor that links two widgets
type DirectionalLink = IPythonWidget 'DirectionalLinkType Source #
An DirectionalLink
represents a DirectionalLink widget from IPython.html.widgets.
mkDirectionalLink :: IO DirectionalLink Source #
Create a new DirectionalLink widget
jsdlink :: WidgetFieldPair -> WidgetFieldPair -> IO DirectionalLink Source #
An easier constructor that links two widgets
type TextArea = IPythonWidget 'TextAreaType Source #
A TextArea
represents a Textarea widget from IPython.html.widgets.
mkTextArea :: IO TextArea Source #
Create a new TextArea widget
type TextWidget = IPythonWidget 'TextType Source #
A TextWidget
represents a Text widget from IPython.html.widgets.
mkText :: IO TextWidget Source #
Create a new Text widget
type PasswordWidget = IPythonWidget 'PasswordType Source #
A PasswordWidget
represents a Password widget from IPython.html.widgets.
mkPassword :: IO PasswordWidget Source #
Create a new Password widget
type LabelWidget = IPythonWidget 'LabelType Source #
A LabelWidget
represents a Label widget from IPython.html.widgets.
mkLabel :: IO LabelWidget Source #
Create a new Label widget
type HTMLMathWidget = IPythonWidget 'HTMLMathType Source #
A HTMLMathWidget
represents a HTML Math widget from IPython.html.widgets.
mkHTMLMath :: IO HTMLMathWidget Source #
Create a new HTML widget
type HTMLWidget = IPythonWidget 'HTMLType Source #
A HTMLWidget
represents a HTML widget from IPython.html.widgets.
mkHTML :: IO HTMLWidget Source #
Create a new HTML widget
type ComboboxWidget = IPythonWidget 'ComboboxType Source #
A ComboboxWidget
represents a Combobox widget from IPython.html.widgets.
mkCombobox :: IO ComboboxWidget Source #
Create a new Combobox widget
type ToggleButtons = IPythonWidget 'ToggleButtonsType Source #
A ToggleButtons
represents a ToggleButtons widget from IPython.html.widgets.
mkToggleButtons :: IO ToggleButtons Source #
Create a new ToggleButtons widget
type SelectionSlider = IPythonWidget 'SelectionSliderType Source #
A SelectionSlider
represents a SelectionSlider widget from IPyhon.widgets
mkSelectionSlider :: IO SelectionSlider Source #
Create a new SelectionSLider widget
type SelectionRangeSlider = IPythonWidget 'SelectionRangeSliderType Source #
A SelectionRangeSlider
represents a SelectionSlider widget from IPyhon.widgets
mkSelectionRangeSlider :: IO SelectionRangeSlider Source #
Create a new SelectionRangeSlider widget
type SelectMultiple = IPythonWidget 'SelectMultipleType Source #
A SelectMultiple
represents a SelectMultiple widget from IPython.html.widgets.
mkSelectMultiple :: IO SelectMultiple Source #
Create a new SelectMultiple widget
type Select = IPythonWidget 'SelectType Source #
A Select
represents a Select widget from IPython.html.widgets.
type RadioButtons = IPythonWidget 'RadioButtonsType Source #
A RadioButtons
represents a RadioButtons widget from IPython.html.widgets.
mkRadioButtons :: IO RadioButtons Source #
Create a new RadioButtons widget
type Dropdown = IPythonWidget 'DropdownType Source #
A Dropdown
represents a Dropdown widget from IPython.html.widgets.
mkDropdown :: IO Dropdown Source #
Create a new Dropdown widget
type OutputWidget = IPythonWidget 'OutputType Source #
An OutputWidget
represents a Output widget from IPython.html.widgets.
mkOutput :: IO OutputWidget Source #
Create a new output widget
appendStdout :: OutputWidget -> Text -> IO () Source #
Appends text to the stdout of an output widget
appendStderr :: OutputWidget -> Text -> IO () Source #
Appends text to the stderr of an output widget
appendDisplay :: IHaskellDisplay a => OutputWidget -> a -> IO () Source #
Appends anything displayable to an output widget
clearOutput :: OutputWidget -> IO () Source #
Clear the output widget immediately
clearOutput_ :: OutputWidget -> IO () Source #
Clear the output widget on next append
replaceOutput :: IHaskellDisplay a => OutputWidget -> a -> IO () Source #
Replace the currently displayed output for output widget
type VideoWidget = IPythonWidget 'VideoType Source #
An VideoWidget
represents a video widget from IPython.html.widgets.
mkVideo :: IO VideoWidget Source #
Create a new video widget
type ImageWidget = IPythonWidget 'ImageType Source #
An ImageWidget
represents a Image widget from IPython.html.widgets.
mkImage :: IO ImageWidget Source #
Create a new image widget
type AudioWidget = IPythonWidget 'AudioType Source #
An AudioWidget
represents a Audio widget from IPython.html.widgets.
mkAudio :: IO AudioWidget Source #
Create a new audio widget
type IntText = IPythonWidget 'IntTextType Source #
IntText
represents an IntText widget from IPython.html.widgets.
type IntRangeSlider = IPythonWidget 'IntRangeSliderType Source #
IntRangeSlider
represents an IntRangeSlider widget from IPython.html.widgets.
mkIntRangeSlider :: IO IntRangeSlider Source #
Create a new widget
type Play = IPythonWidget 'PlayType Source #
Play
represents an Play widget from IPython.html.widgets.
type IntSlider = IPythonWidget 'IntSliderType Source #
IntSlider
represents an IntSlider widget from IPython.html.widgets.
mkIntSlider :: IO IntSlider Source #
Create a new widget
type IntProgress = IPythonWidget 'IntProgressType Source #
IntProgress
represents an IntProgress widget from IPython.html.widgets.
mkIntProgress :: IO IntProgress Source #
Create a new widget
type BoundedIntText = IPythonWidget 'BoundedIntTextType Source #
BoundedIntText
represents an BoundedIntText widget from IPython.html.widgets.
mkBoundedIntText :: IO BoundedIntText Source #
Create a new widget
type FloatText = IPythonWidget 'FloatTextType Source #
FloatText
represents an FloatText widget from IPython.html.widgets.
mkFloatText :: IO FloatText Source #
Create a new widget
type FloatRangeSlider = IPythonWidget 'FloatRangeSliderType Source #
FloatRangeSlider
represents an FloatRangeSlider widget from IPython.html.widgets.
mkFloatRangeSlider :: IO FloatRangeSlider Source #
Create a new widget
type FloatSlider = IPythonWidget 'FloatSliderType Source #
FloatSlider
represents an FloatSlider widget from IPython.html.widgets.
mkFloatSlider :: IO FloatSlider Source #
Create a new widget
type FloatProgress = IPythonWidget 'FloatProgressType Source #
FloatProgress
represents an FloatProgress widget from IPython.html.widgets.
mkFloatProgress :: IO FloatProgress Source #
Create a new widget
type FloatLogSlider = IPythonWidget 'FloatLogSliderType Source #
FloatLogSlider
represents an FloatLogSlider widget from IPython.html.widgets.
mkFloatLogSlider :: IO FloatLogSlider Source #
Create a new widget
type BoundedFloatText = IPythonWidget 'BoundedFloatTextType Source #
BoundedFloatText
represents an BoundedFloatText widget from IPython.html.widgets.
mkBoundedFloatText :: IO BoundedFloatText Source #
Create a new widget
type DatePicker = IPythonWidget 'DatePickerType Source #
A DatePicker
represents a DatePicker from IPython.html.widgets.
mkDatePicker :: IO DatePicker Source #
Create a new DatePicker
type ControllerButton = IPythonWidget 'ControllerButtonType Source #
ControllerButton
represents an ControllerButton widget from IPython.html.widgets.
mkControllerButton :: IO ControllerButton Source #
Create a new widget
type ControllerAxis = IPythonWidget 'ControllerAxisType Source #
ControllerAxis
represents an ControllerAxis widget from IPython.html.widgets.
mkControllerAxis :: IO ControllerAxis Source #
Create a new widget
type Controller = IPythonWidget 'ControllerType Source #
Controller
represents an Controller widget from IPython.html.widgets.
mkController :: IO Controller Source #
Create a new widget
type ColorPicker = IPythonWidget 'ColorPickerType Source #
A ColorPicker
represents a ColorPicker from IPython.html.widgets.
mkColorPicker :: IO ColorPicker Source #
Create a new ColorPicker
type Button = IPythonWidget 'ButtonType Source #
A Button
represents a Button from IPython.html.widgets.
type VBox = IPythonWidget 'VBoxType Source #
A VBox
represents a VBox widget from IPython.html.widgets.
type TabWidget = IPythonWidget 'TabType Source #
A TabWidget
represents a Tab widget from IPython.html.widgets.
type Accordion = IPythonWidget 'AccordionType Source #
A Accordion
represents a Accordion widget from IPython.html.widgets.
mkAccordion :: IO Accordion Source #
Create a new box
type HBox = IPythonWidget 'HBoxType Source #
A HBox
represents a HBox widget from IPython.html.widgets.
type GridBox = IPythonWidget 'GridBoxType Source #
A GridBox
represents a GridBox widget from IPython.html.widgets.
type ValidWidget = IPythonWidget 'ValidType Source #
A ValidWidget
represents a Valid widget from IPython.html.widgets.
mkValid :: IO ValidWidget Source #
Create a new output widget
type ToggleButton = IPythonWidget 'ToggleButtonType Source #
A ToggleButton
represents a ToggleButton widget from IPython.html.widgets.
mkToggleButton :: IO ToggleButton Source #
Create a new output widget
type CheckBox = IPythonWidget 'CheckBoxType Source #
A CheckBox
represents a Checkbox widget from IPython.html.widgets.
mkCheckBox :: IO CheckBox Source #
Create a new output widget