You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steve Pallen edited this page May 11, 2016
·
2 revisions
Simply add toggle: true to an index column or a show row do display YESNO buttons for a boolean field.
defmodule ContactDemo.ExAdmin.User do
use ExAdmin.Register
register_resource ContactDemo.User do
index do
column :username
column :active, toggle: true
end
show user do
attributes_table do
row :username
row :active, toggle: true
end
end
end
end