Melissa,
In the Filter Widget.js file make these changes to clear the inputs (add the require for registry line 17 and 23 bellow):
.....
define([
'dojo/_base/declare',
'dojo/_base/array',
'dojo/_base/html',
'dojo/_base/lang',
'dojo/query',
'dojo/on',
'dijit/_WidgetsInTemplateMixin',
'jimu/utils',
'jimu/BaseWidget',
'jimu/filterUtils',
'jimu/dijit/FilterParameters',
'jimu/LayerInfos/LayerInfos',
'jimu/FilterManager',
'esri/request',
'dijit/registry',
'dojo/NodeList',
'dojo/NodeList-dom'
],
function(declare, array, html, lang, query, on, _WidgetsInTemplateMixin,
jimuUtils, BaseWidget, FilterUtils, FilterParameters, LayerInfos, FilterManager,
esriRequest, registry) {
....
(add lines 2 - 7 below to the _removeItemFilter function in the Widget.js)
_removeItemFilter: function(layerId, idx) {
var spDoms = query('.jimu-single-filter-parameter', this.tbody);
array.forEach(spDoms, lang.hitch(this, function(spDom){
var sp = registry.byNode(spDom);
sp.valueProvider._dijit.set("value", null);
}));
delete this._store[layerId]['filter_item_' + idx];
delete this._store[layerId].mapFilterControls['filter_item_' + idx];
},
For the widgets size you need to edit the apps main config ( I added the property height below):
{
"position": {
"left": 105,
"top": 45,
"height": 230,
"relativeTo": "map"
},
"placeholderIndex": 1,
"id": "_25",
"name": "Filter",
"version": "2.5",
"closeable": true,
"uri": "widgets/Filter/Widget",
"config": "configs/Filter/config_Filter.json"
},