Skip to content
Browse files

Added note on deleting attributes with CSS transforms

  • Loading branch information...
1 parent f8f8abf commit 469ff46864b41705ff8656cd0e1b29a4a0b5226d @dchenbecker dchenbecker committed
Showing with 41 additions and 4 deletions.
  1. +41 −4 chap-snippets.lyx
View
45 chap-snippets.lyx
@@ -447,7 +447,6 @@ status open
\begin_inset Caption
\begin_layout Plain Layout
-
Invoking Snippets Via the Class Attribute
\begin_inset CommandInset label
LatexCommand label
@@ -2446,7 +2445,6 @@ status open
\begin_inset Caption
\begin_layout Plain Layout
-
A Simple CSS Snippet
\begin_inset CommandInset label
LatexCommand label
@@ -2520,7 +2518,6 @@ status open
\begin_inset Caption
\begin_layout Plain Layout
-
Binding the Ledger Balance with CSS
\begin_inset CommandInset label
LatexCommand label
@@ -2829,7 +2826,6 @@ status open
\begin_inset Caption
\begin_layout Plain Layout
-
Sample CSS Transform Result
\begin_inset CommandInset label
LatexCommand label
@@ -3432,6 +3428,47 @@ class
\end_layout
+\begin_layout Standard
+Passing in a
+\family typewriter
+None
+\family default
+/
+\family typewriter
+Empty
+\family default
+ will remove the selected element.
+ For example, you can delete an attribute
+\begin_inset Index
+status open
+
+\begin_layout Plain Layout
+CSS Transforms ! deleting attribute
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index
+status open
+
+\begin_layout Plain Layout
+Attributes ! delete with CSS transform
+\end_layout
+
+\end_inset
+
+ with the following code:
+\end_layout
+
+\begin_layout LyX-Code
+val blank: Option[String] = None
+\end_layout
+
+\begin_layout LyX-Code
+"#thing [class]" #> blank
+\end_layout
+
\end_deeper
\begin_layout Itemize
A

0 comments on commit 469ff46

Please sign in to comment.
Something went wrong with that request. Please try again.