tweaks
This commit is contained in:
@@ -56,12 +56,11 @@
|
||||
[:input {:type :hidden :name "id" :value ((:id-fn gridspec) entity)}]]
|
||||
((:row-buttons gridspec) request entity))))] ;; TODO double check usage of row buttons user and identity in callers
|
||||
(apply com/data-grid-row
|
||||
{:class (cond-> (or class "")
|
||||
flash? (hh/add-class "live-added"))
|
||||
"_" (hiccup/raw (when delete-after-settle?
|
||||
" on htmx:afterSettle wait 400ms then remove me"))
|
||||
|
||||
:data-id ((:id-fn gridspec) entity)}
|
||||
(cond-> {:class (cond-> (or class "")
|
||||
flash? (hh/add-class "live-added group"))
|
||||
:data-id ((:id-fn gridspec) entity)}
|
||||
delete-after-settle?
|
||||
(assoc "@htmx:after-settle.camel" "setTimeout(() => $el.remove(), 400)"))
|
||||
cells)))
|
||||
|
||||
(defn sort-icon [sort key]
|
||||
|
||||
Reference in New Issue
Block a user