refactor
This commit is contained in:
parent
ed739d792f
commit
e9a9dad037
19 changed files with 278 additions and 177 deletions
|
@ -113,8 +113,10 @@ impl UIWidget for PreEscaped<String> {
|
|||
|
||||
/// Trait for an element which can add new `attrs`
|
||||
pub trait AttrExtendable {
|
||||
#[must_use]
|
||||
fn add_attr(self, key: &str, val: &str) -> Self;
|
||||
|
||||
/// Set the `id` attribute of an element.
|
||||
#[must_use]
|
||||
fn id(self, id: &str) -> Self;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue