View Source PlausibleWeb.Components.Site.Feature (Plausible v0.0.1)
Phoenix Component for rendering a user-facing feature toggle
capable of flipping booleans in Plausible.Site
via the toggle_feature
controller action.
Summary
Functions
The resource name, as an atom, for this view
Renders the given template locally.
Callback invoked when no template is found. By default it raises but can be customized to render a particular template.
Attributes
site
(Plausible.Site
) (required)feature_mod
(:atom
) (required) - Must be one ofPlausible.Billing.Feature.Goals
,Plausible.Billing.Feature.StatsAPI
,Plausible.Billing.Feature.Props
,Plausible.Billing.Feature.Funnels
, orPlausible.Billing.Feature.RevenueGoals
.conn
(Plug.Conn
) (required)
Slots
inner_block
Functions
The resource name, as an atom, for this view
Renders the given template locally.
Callback invoked when no template is found. By default it raises but can be customized to render a particular template.
Attributes
site
(Plausible.Site
) (required)feature_mod
(:atom
) (required) - Must be one ofPlausible.Billing.Feature.Goals
,Plausible.Billing.Feature.StatsAPI
,Plausible.Billing.Feature.Props
,Plausible.Billing.Feature.Funnels
, orPlausible.Billing.Feature.RevenueGoals
.conn
(Plug.Conn
) (required)
Slots
inner_block