Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
fix disabling/enabling
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Jan 28, 2017
1 parent 9609b63 commit 2309c80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.github.sanity'
version '0.0.18'
version '0.0.19'

buildscript {
ext.kotlin_version = '1.1.0-beta-17'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ fun Element.deactivate(): Element {
}

fun Element.disable(): Element {
addClasses("disabled")
setAttribute("disabled", true)
return this
}

fun Element.enable(): Element {
removeClasses("disabled")
setAttribute("disabled", false)
return this
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.github.sanity.kweb.dom.element.modification.addClasses
import com.github.sanity.kweb.plugins.materialdesignlite.materialDesignLite

/**
* Created by ian on 1/21/17.
* See https://material.io/guidelines/style/typography.html#typography-styles
*/

fun Element.typography(style: TypographyStyles): Element {
Expand Down

0 comments on commit 2309c80

Please sign in to comment.