Basic #
Regate.InteractiveBoolean.init({
id: 'basic-example',
name: 'status',
apiUrl: 'https://jsonplaceholder.typicode.com/posts',
})
@Html.Raw(InteractiveBoolean.Build("https://jsonplaceholder.typicode.com/posts", "Status"))
Value: true #
Regate.InteractiveBoolean.init({
id: 'value-true-example',
name: 'status',
value: true,
apiUrl: 'https://jsonplaceholder.typicode.com/posts',
})
@Html.Raw(InteractiveBoolean.Build("https://jsonplaceholder.typicode.com/posts", "Status", true))
Value: false #
Regate.InteractiveBoolean.init({
id: 'value-false-example',
name: 'status',
value: false,
apiUrl: 'https://jsonplaceholder.typicode.com/posts',
})
@Html.Raw(InteractiveBoolean.Build("https://jsonplaceholder.typicode.com/posts", "Status", false))
Nullable #
Regate.InteractiveBoolean.init({
id: 'isnullable-example',
name: 'status',
isNullable: true,
apiUrl: 'https://jsonplaceholder.typicode.com/posts',
})
@Html.Raw(InteractiveBoolean.Build("https://jsonplaceholder.typicode.com/posts", "Status", isNullable: true))