mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement filter for file-type input's accept attribute
This commit is contained in:
parent
881c02ec89
commit
74eb80dbd8
9 changed files with 78 additions and 45 deletions
|
@ -19,6 +19,8 @@ pub struct SelectedFile {
|
|||
pub type_string: String,
|
||||
}
|
||||
|
||||
/// Filter for file selection
|
||||
/// the content is expected to be extension (e.g, "doc", without the prefixing ".")
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct FilterPattern(pub String);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue