This commit is contained in:
JMARyA 2025-01-15 18:53:55 +01:00
parent ed739d792f
commit e9a9dad037
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
19 changed files with 278 additions and 177 deletions

View file

@ -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;
}