Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
26addb62
Commit
26addb62
authored
Jul 12, 2015
by
Sumit Sahrawat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop -Widget suffix wherever possible
parent
4d55781b
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
114 additions
and
114 deletions
+114
-114
CheckBox.hs
...ell-widgets/src/IHaskell/Display/Widgets/Bool/CheckBox.hs
+8
-8
BoundedFloatText.hs
...ll/Display/Widgets/Float/BoundedFloat/BoundedFloatText.hs
+8
-8
FloatProgress.hs
...skell/Display/Widgets/Float/BoundedFloat/FloatProgress.hs
+8
-8
FloatSlider.hs
...Haskell/Display/Widgets/Float/BoundedFloat/FloatSlider.hs
+8
-8
FloatRangeSlider.hs
...splay/Widgets/Float/BoundedFloatRange/FloatRangeSlider.hs
+8
-8
FloatText.hs
...l-widgets/src/IHaskell/Display/Widgets/Float/FloatText.hs
+8
-8
BoundedIntText.hs
...IHaskell/Display/Widgets/Int/BoundedInt/BoundedIntText.hs
+8
-8
IntProgress.hs
...rc/IHaskell/Display/Widgets/Int/BoundedInt/IntProgress.hs
+8
-8
IntSlider.hs
.../src/IHaskell/Display/Widgets/Int/BoundedInt/IntSlider.hs
+8
-8
IntRangeSlider.hs
...ell/Display/Widgets/Int/BoundedIntRange/IntRangeSlider.hs
+8
-8
IntText.hs
...skell-widgets/src/IHaskell/Display/Widgets/Int/IntText.hs
+8
-8
Select.hs
...-widgets/src/IHaskell/Display/Widgets/Selection/Select.hs
+9
-9
SelectMultiple.hs
.../src/IHaskell/Display/Widgets/Selection/SelectMultiple.hs
+9
-9
TextArea.hs
...l-widgets/src/IHaskell/Display/Widgets/String/TextArea.hs
+8
-8
No files found.
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Bool/CheckBox.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Bool.CheckBox
(
-- * The CheckBox Widget
CheckBox
Widget
,
CheckBox
,
-- * Constructor
mkCheckBox
Widget
)
where
mkCheckBox
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -26,12 +26,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | A 'CheckBox
Widget
' represents a Checkbox widget from IPython.html.widgets.
type
CheckBox
Widget
=
IPythonWidget
CheckBoxType
-- | A 'CheckBox' represents a Checkbox widget from IPython.html.widgets.
type
CheckBox
=
IPythonWidget
CheckBoxType
-- | Create a new output widget
mkCheckBox
Widget
::
IO
CheckBoxWidget
mkCheckBox
Widget
=
do
mkCheckBox
::
IO
CheckBox
mkCheckBox
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
...
...
@@ -49,12 +49,12 @@ mkCheckBoxWidget = do
-- Return the image widget
return
widget
instance
IHaskellDisplay
CheckBox
Widget
where
instance
IHaskellDisplay
CheckBox
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
CheckBox
Widget
where
instance
IHaskellWidget
CheckBox
where
getCommUUID
=
uuid
comm
widget
(
Object
dict1
)
_
=
do
let
key1
=
"sync_data"
::
Text
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Float/BoundedFloat/BoundedFloatText.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Float.BoundedFloat.BoundedFloatText
(
-- * The BoundedFloatText Widget
BoundedFloatText
Widget
,
BoundedFloatText
,
-- * Constructor
mkBoundedFloatText
Widget
)
where
mkBoundedFloatText
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -28,12 +28,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | 'BoundedFloatText
Widget
' represents an BoundedFloatText widget from IPython.html.widgets.
type
BoundedFloatText
Widget
=
IPythonWidget
BoundedFloatTextType
-- | 'BoundedFloatText' represents an BoundedFloatText widget from IPython.html.widgets.
type
BoundedFloatText
=
IPythonWidget
BoundedFloatTextType
-- | Create a new widget
mkBoundedFloatText
Widget
::
IO
BoundedFloatTextWidge
t
mkBoundedFloatText
Widget
=
do
mkBoundedFloatText
::
IO
BoundedFloatTex
t
mkBoundedFloatText
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
...
...
@@ -53,12 +53,12 @@ mkBoundedFloatTextWidget = do
-- Return the widget
return
widget
instance
IHaskellDisplay
BoundedFloatText
Widget
where
instance
IHaskellDisplay
BoundedFloatText
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
BoundedFloatText
Widget
where
instance
IHaskellWidget
BoundedFloatText
where
getCommUUID
=
uuid
comm
widget
(
Object
dict1
)
_
=
do
let
key1
=
"sync_data"
::
Text
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Float/BoundedFloat/FloatProgress.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Float.BoundedFloat.FloatProgress
(
-- * The FloatProgress Widget
FloatProgress
Widget
,
FloatProgress
,
-- * Constructor
mkFloatProgress
Widget
)
where
mkFloatProgress
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -28,12 +28,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | 'FloatProgress
Widget
' represents an FloatProgress widget from IPython.html.widgets.
type
FloatProgress
Widget
=
IPythonWidget
FloatProgressType
-- | 'FloatProgress' represents an FloatProgress widget from IPython.html.widgets.
type
FloatProgress
=
IPythonWidget
FloatProgressType
-- | Create a new widget
mkFloatProgress
Widget
::
IO
FloatProgressWidget
mkFloatProgress
Widget
=
do
mkFloatProgress
::
IO
FloatProgress
mkFloatProgress
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
...
...
@@ -55,10 +55,10 @@ mkFloatProgressWidget = do
-- Return the widget
return
widget
instance
IHaskellDisplay
FloatProgress
Widget
where
instance
IHaskellDisplay
FloatProgress
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
FloatProgress
Widget
where
instance
IHaskellWidget
FloatProgress
where
getCommUUID
=
uuid
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Float/BoundedFloat/FloatSlider.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Float.BoundedFloat.FloatSlider
(
-- * The FloatSlider Widget
FloatSlider
Widget
,
FloatSlider
,
-- * Constructor
mkFloatSlider
Widget
)
where
mkFloatSlider
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -28,12 +28,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | 'FloatSlider
Widget
' represents an FloatSlider widget from IPython.html.widgets.
type
FloatSlider
Widget
=
IPythonWidget
FloatSliderType
-- | 'FloatSlider' represents an FloatSlider widget from IPython.html.widgets.
type
FloatSlider
=
IPythonWidget
FloatSliderType
-- | Create a new widget
mkFloatSlider
Widget
::
IO
FloatSliderWidget
mkFloatSlider
Widget
=
do
mkFloatSlider
::
IO
FloatSlider
mkFloatSlider
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
...
...
@@ -59,12 +59,12 @@ mkFloatSliderWidget = do
-- Return the widget
return
widget
instance
IHaskellDisplay
FloatSlider
Widget
where
instance
IHaskellDisplay
FloatSlider
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
FloatSlider
Widget
where
instance
IHaskellWidget
FloatSlider
where
getCommUUID
=
uuid
comm
widget
(
Object
dict1
)
_
=
do
let
key1
=
"sync_data"
::
Text
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Float/BoundedFloatRange/FloatRangeSlider.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Float.BoundedFloatRange.FloatRangeSlider
(
-- * The FloatRangeSlider Widget
FloatRangeSlider
Widget
,
FloatRangeSlider
,
-- * Constructor
mkFloatRangeSlider
Widget
)
where
mkFloatRangeSlider
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -29,12 +29,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | 'FloatRangeSlider
Widget
' represents an FloatRangeSlider widget from IPython.html.widgets.
type
FloatRangeSlider
Widget
=
IPythonWidget
FloatRangeSliderType
-- | 'FloatRangeSlider' represents an FloatRangeSlider widget from IPython.html.widgets.
type
FloatRangeSlider
=
IPythonWidget
FloatRangeSliderType
-- | Create a new widget
mkFloatRangeSlider
Widget
::
IO
FloatRangeSliderWidget
mkFloatRangeSlider
Widget
=
do
mkFloatRangeSlider
::
IO
FloatRangeSlider
mkFloatRangeSlider
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
...
...
@@ -60,12 +60,12 @@ mkFloatRangeSliderWidget = do
-- Return the widget
return
widget
instance
IHaskellDisplay
FloatRangeSlider
Widget
where
instance
IHaskellDisplay
FloatRangeSlider
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
FloatRangeSlider
Widget
where
instance
IHaskellWidget
FloatRangeSlider
where
getCommUUID
=
uuid
comm
widget
(
Object
dict1
)
_
=
do
let
key1
=
"sync_data"
::
Text
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Float/FloatText.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Float.FloatText
(
-- * The FloatText Widget
FloatText
Widget
,
FloatText
,
-- * Constructor
mkFloatText
Widget
)
where
mkFloatText
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -28,12 +28,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | 'FloatText
Widget
' represents an FloatText widget from IPython.html.widgets.
type
FloatText
Widget
=
IPythonWidget
FloatTextType
-- | 'FloatText' represents an FloatText widget from IPython.html.widgets.
type
FloatText
=
IPythonWidget
FloatTextType
-- | Create a new widget
mkFloatText
Widget
::
IO
FloatTextWidge
t
mkFloatText
Widget
=
do
mkFloatText
::
IO
FloatTex
t
mkFloatText
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
...
...
@@ -50,12 +50,12 @@ mkFloatTextWidget = do
-- Return the widget
return
widget
instance
IHaskellDisplay
FloatText
Widget
where
instance
IHaskellDisplay
FloatText
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
FloatText
Widget
where
instance
IHaskellWidget
FloatText
where
getCommUUID
=
uuid
comm
widget
(
Object
dict1
)
_
=
do
let
key1
=
"sync_data"
::
Text
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Int/BoundedInt/BoundedIntText.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Int.BoundedInt.BoundedIntText
(
-- * The BoundedIntText Widget
BoundedIntText
Widget
,
BoundedIntText
,
-- * Constructor
mkBoundedIntText
Widget
)
where
mkBoundedIntText
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -28,12 +28,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | 'BoundedIntText
Widget
' represents an BoundedIntText widget from IPython.html.widgets.
type
BoundedIntText
Widget
=
IPythonWidget
BoundedIntTextType
-- | 'BoundedIntText' represents an BoundedIntText widget from IPython.html.widgets.
type
BoundedIntText
=
IPythonWidget
BoundedIntTextType
-- | Create a new widget
mkBoundedIntText
Widget
::
IO
BoundedIntTextWidge
t
mkBoundedIntText
Widget
=
do
mkBoundedIntText
::
IO
BoundedIntTex
t
mkBoundedIntText
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
...
...
@@ -53,12 +53,12 @@ mkBoundedIntTextWidget = do
-- Return the widget
return
widget
instance
IHaskellDisplay
BoundedIntText
Widget
where
instance
IHaskellDisplay
BoundedIntText
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
BoundedIntText
Widget
where
instance
IHaskellWidget
BoundedIntText
where
getCommUUID
=
uuid
comm
widget
(
Object
dict1
)
_
=
do
let
key1
=
"sync_data"
::
Text
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Int/BoundedInt/IntProgress.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Int.BoundedInt.IntProgress
(
-- * The IntProgress Widget
IntProgress
Widget
,
IntProgress
,
-- * Constructor
mkIntProgress
Widget
)
where
mkIntProgress
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -28,12 +28,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | 'IntProgress
Widget
' represents an IntProgress widget from IPython.html.widgets.
type
IntProgress
Widget
=
IPythonWidget
IntProgressType
-- | 'IntProgress' represents an IntProgress widget from IPython.html.widgets.
type
IntProgress
=
IPythonWidget
IntProgressType
-- | Create a new widget
mkIntProgress
Widget
::
IO
IntProgressWidget
mkIntProgress
Widget
=
do
mkIntProgress
::
IO
IntProgress
mkIntProgress
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
...
...
@@ -55,10 +55,10 @@ mkIntProgressWidget = do
-- Return the widget
return
widget
instance
IHaskellDisplay
IntProgress
Widget
where
instance
IHaskellDisplay
IntProgress
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
IntProgress
Widget
where
instance
IHaskellWidget
IntProgress
where
getCommUUID
=
uuid
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Int/BoundedInt/IntSlider.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Int.BoundedInt.IntSlider
(
-- * The IntSlider Widget
IntSlider
Widget
,
IntSlider
,
-- * Constructor
mkIntSlider
Widget
)
where
mkIntSlider
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -28,12 +28,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | 'IntSlider
Widget
' represents an IntSlider widget from IPython.html.widgets.
type
IntSlider
Widget
=
IPythonWidget
IntSliderType
-- | 'IntSlider' represents an IntSlider widget from IPython.html.widgets.
type
IntSlider
=
IPythonWidget
IntSliderType
-- | Create a new widget
mkIntSlider
Widget
::
IO
IntSliderWidget
mkIntSlider
Widget
=
do
mkIntSlider
::
IO
IntSlider
mkIntSlider
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
...
...
@@ -59,12 +59,12 @@ mkIntSliderWidget = do
-- Return the widget
return
widget
instance
IHaskellDisplay
IntSlider
Widget
where
instance
IHaskellDisplay
IntSlider
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
IntSlider
Widget
where
instance
IHaskellWidget
IntSlider
where
getCommUUID
=
uuid
comm
widget
(
Object
dict1
)
_
=
do
let
key1
=
"sync_data"
::
Text
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Int/BoundedIntRange/IntRangeSlider.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Int.BoundedIntRange.IntRangeSlider
(
-- * The IntRangeSlider Widget
IntRangeSlider
Widget
,
IntRangeSlider
,
-- * Constructor
mkIntRangeSlider
Widget
)
where
mkIntRangeSlider
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -29,12 +29,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | 'IntRangeSlider
Widget
' represents an IntRangeSlider widget from IPython.html.widgets.
type
IntRangeSlider
Widget
=
IPythonWidget
IntRangeSliderType
-- | 'IntRangeSlider' represents an IntRangeSlider widget from IPython.html.widgets.
type
IntRangeSlider
=
IPythonWidget
IntRangeSliderType
-- | Create a new widget
mkIntRangeSlider
Widget
::
IO
IntRangeSliderWidget
mkIntRangeSlider
Widget
=
do
mkIntRangeSlider
::
IO
IntRangeSlider
mkIntRangeSlider
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
...
...
@@ -60,12 +60,12 @@ mkIntRangeSliderWidget = do
-- Return the widget
return
widget
instance
IHaskellDisplay
IntRangeSlider
Widget
where
instance
IHaskellDisplay
IntRangeSlider
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
IntRangeSlider
Widget
where
instance
IHaskellWidget
IntRangeSlider
where
getCommUUID
=
uuid
comm
widget
(
Object
dict1
)
_
=
do
let
key1
=
"sync_data"
::
Text
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Int/IntText.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Int.IntText
(
-- * The IntText Widget
IntText
Widget
,
IntText
,
-- * Constructor
mkIntText
Widget
)
where
mkIntText
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -28,12 +28,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | 'IntText
Widget
' represents an IntText widget from IPython.html.widgets.
type
IntText
Widget
=
IPythonWidget
IntTextType
-- | 'IntText' represents an IntText widget from IPython.html.widgets.
type
IntText
=
IPythonWidget
IntTextType
-- | Create a new widget
mkIntText
Widget
::
IO
IntTextWidge
t
mkIntText
Widget
=
do
mkIntText
::
IO
IntTex
t
mkIntText
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
...
...
@@ -50,12 +50,12 @@ mkIntTextWidget = do
-- Return the widget
return
widget
instance
IHaskellDisplay
IntText
Widget
where
instance
IHaskellDisplay
IntText
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
IntText
Widget
where
instance
IHaskellWidget
IntText
where
getCommUUID
=
uuid
comm
widget
(
Object
dict1
)
_
=
do
let
key1
=
"sync_data"
::
Text
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Selection/Select.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Selection.Select
(
-- * The Select Widget
Select
Widget
,
Select
,
-- * Constructor
mkSelect
Widget
)
where
mkSelect
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -26,12 +26,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | A 'Select
Widget
' represents a Select widget from IPython.html.widgets.
type
Select
Widget
=
IPythonWidget
SelectType
-- | A 'Select' represents a Select widget from IPython.html.widgets.
type
Select
=
IPythonWidget
SelectType
-- | Create a new Select widget
mkSelect
Widget
::
IO
SelectWidge
t
mkSelect
Widget
=
do
mkSelect
::
IO
Selec
t
mkSelect
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
let
widgetState
=
WidgetState
$
defaultSelectionWidget
"SelectView"
...
...
@@ -48,15 +48,15 @@ mkSelectWidget = do
return
widget
-- | Artificially trigger a selection
triggerSelection
::
Select
Widget
->
IO
()
triggerSelection
::
Select
->
IO
()
triggerSelection
widget
=
join
$
getField
widget
SSelectionHandler
instance
IHaskellDisplay
Select
Widget
where
instance
IHaskellDisplay
Select
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
Select
Widget
where
instance
IHaskellWidget
Select
where
getCommUUID
=
uuid
comm
widget
(
Object
dict1
)
_
=
do
let
key1
=
"sync_data"
::
Text
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Selection/SelectMultiple.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.Selection.SelectMultiple
(
-- * The SelectMultiple Widget
SelectMultiple
Widget
,
SelectMultiple
,
-- * Constructor
mkSelectMultiple
Widget
)
where
mkSelectMultiple
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -27,12 +27,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
import
IHaskell.Display.Widgets.Common
-- | A 'SelectMultiple
Widget
' represents a SelectMultiple widget from IPython.html.widgets.
type
SelectMultiple
Widget
=
IPythonWidget
SelectMultipleType
-- | A 'SelectMultiple' represents a SelectMultiple widget from IPython.html.widgets.
type
SelectMultiple
=
IPythonWidget
SelectMultipleType
-- | Create a new SelectMultiple widget
mkSelectMultiple
Widget
::
IO
SelectMultipleWidget
mkSelectMultiple
Widget
=
do
mkSelectMultiple
::
IO
SelectMultiple
mkSelectMultiple
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
let
widgetState
=
WidgetState
$
defaultMultipleSelectionWidget
"SelectMultipleView"
...
...
@@ -52,15 +52,15 @@ mkSelectMultipleWidget = do
return
widget
-- | Artificially trigger a selection
triggerSelection
::
SelectMultiple
Widget
->
IO
()
triggerSelection
::
SelectMultiple
->
IO
()
triggerSelection
widget
=
join
$
getField
widget
SSelectionHandler
instance
IHaskellDisplay
SelectMultiple
Widget
where
instance
IHaskellDisplay
SelectMultiple
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
SelectMultiple
Widget
where
instance
IHaskellWidget
SelectMultiple
where
getCommUUID
=
uuid
comm
widget
(
Object
dict1
)
_
=
do
let
key1
=
"sync_data"
::
Text
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/String/TextArea.hs
View file @
26addb62
...
...
@@ -5,9 +5,9 @@
module
IHaskell.Display.Widgets.String.TextArea
(
-- * The TextArea Widget
TextArea
Widget
,
TextArea
,
-- * Constructor
mkTextArea
Widget
)
where
mkTextArea
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
import
Prelude
...
...
@@ -24,12 +24,12 @@ import IHaskell.IPython.Message.UUID as U
import
IHaskell.Display.Widgets.Types
-- | A 'TextArea
Widget
' represents a Textarea widget from IPython.html.widgets.
type
TextArea
Widget
=
IPythonWidget
TextAreaType
-- | A 'TextArea' represents a Textarea widget from IPython.html.widgets.
type
TextArea
=
IPythonWidget
TextAreaType
-- | Create a new TextArea widget
mkTextArea
Widget
::
IO
TextAreaWidget
mkTextArea
Widget
=
do
mkTextArea
::
IO
TextArea
mkTextArea
=
do
-- Default properties, with a random uuid
uuid
<-
U
.
random
let
widgetState
=
WidgetState
$
defaultStringWidget
"TextareaView"
...
...
@@ -46,10 +46,10 @@ mkTextAreaWidget = do
-- Return the widget
return
widget
instance
IHaskellDisplay
TextArea
Widget
where
instance
IHaskellDisplay
TextArea
where
display
b
=
do
widgetSendView
b
return
$
Display
[]
instance
IHaskellWidget
TextArea
Widget
where
instance
IHaskellWidget
TextArea
where
getCommUUID
=
uuid
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment