fix header_actions fn
This commit is contained in:
parent
2b9e53eda4
commit
2fbc31ed0d
1 changed files with 2 additions and 2 deletions
|
|
@ -41,9 +41,9 @@ impl<'a, Message: Clone + 'static> ContextDrawer<'a, Message> {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
/// App-specific actions at the start of the context drawer header
|
/// App-specific actions at the start of the context drawer header
|
||||||
pub fn header_actions<E: Into<Element<'a, Message>>>(
|
pub fn header_actions(
|
||||||
mut self,
|
mut self,
|
||||||
header_actions: impl IntoIterator<Item = E>,
|
header_actions: impl IntoIterator<Item = Element<'a, Message>>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
self.header_actions = header_actions.into_iter().map(|a| a.into()).collect();
|
self.header_actions = header_actions.into_iter().map(|a| a.into()).collect();
|
||||||
self
|
self
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue