mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add setFromStringArray method
This commit is contained in:
parent
a801e96511
commit
a7a08849ea
1 changed files with 8 additions and 0 deletions
|
|
@ -277,6 +277,14 @@ export class StorkFilters {
|
||||||
delete this.filters[ filterName ]
|
delete this.filters[ filterName ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setFromStringArray ( filterStringArray ) {
|
||||||
|
filterStringArray.forEach( filterString => {
|
||||||
|
const { key, value } = this.getFilterNameAndValueFromString( filterString )
|
||||||
|
|
||||||
|
this.filters[ key ] = value
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
setFromString ( filterNameOrQueryValue ) {
|
setFromString ( filterNameOrQueryValue ) {
|
||||||
const {
|
const {
|
||||||
key,
|
key,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue