Filter
- Filtering items in sections
- List filtering
- Table filtering
- Applying additional search filters
- Move UI to specific container
- Custom UI
Filtering items in sections
Surveys starting with the letter A
- Accommodation Services, Annual Survey of Service Industries
- Accounting Services, Annual Survey of Service Industries
- Accounting Services Price Index
- Advertising and Related Services, Annual Survey of Service Industries
- Agriculture Frame Update Survey (AFUS)
- Agriculture Water Survey
- Air Carrier Operations in Canada Quarterly Survey
- Air Passenger Origin and Destination - Domestic Journeys
- Air Passenger Origin and Destination, Canada-U.S.A.
- Airport Activity Survey
- Amusement and Recreation, Annual Survey of Service Industries
- Apartment Building Construction Price
- Architectural, engineering and related services price index (AESPI)
- Architectural Services, Annual Survey of Service Industries
- Asphalt Roofing
- Automotive Equipment Rental and Leasing, Annual Survey of Service Industries
Surveys starting with the letter B
- Building Permits Survey
- Business Payrolls Survey
- Business Register
Surveys starting with the letter C
- Canada's Balance of International Payments
- Canada's International Investment Position
- Canada's International Transactions in Securities
- Canada's International Transactions in Services
- Canadian Community Health Survey – Annual Component
- Canadian Foreign Post Indexes
- Canadian Government Finance Statistics (CGFS)
- Canadian Health Measures Survey
- Canadian Health Survey on Children and Youth
- Capital and Repair Expenditures Survey, Annual: Actual, Preliminary Actual and Intentions (CAPEX)
- Capital Expenditures: Oil and Gas Activities, Quarterly Survey of
- Cement Survey
- Census of Agriculture
- Coal Supply and Disposition Survey, Monthly
- Commercial and Industrial Machinery and Equipment Rental and Leasing, Annual Survey of Service Industries
- Commercial and Industrial Machinery and Equipment Rental and Leasing Services Price Index
- Commercial Stocks for Major Special Crops, Survey of
- Commercial Stocks of Corn and Soybeans, Survey of
- Consulting Services, Annual Survey of Service Industries
- Consulting Services Price Index
- Consumer Goods Rental, Annual Survey of Service Industries
- Consumer Price Index (Prices of Prescribed Drugs, Brand Name and Generic)
- Control and Sale of Alcoholic Beverages in Canada
- Couriers and Messengers Services Price Index
Surveys starting with the letter D
- Dairy Factory Production and Stocks
- Database, Directory and Specialty Publishers, Annual Survey of Service Industries
Surveys starting with the letter E
- Electric Power Thermal Generating Station Fuel Consumption, Annual Survey of
- Electricity Supply and Disposition Survey, Monthly
- Employment Insurance Coverage Survey
- Employment, Payrolls and Hours, Survey of (SEPH)
- Employment Services, Annual Survey of Service Industries
- Energy Research and Development Expenditures by Area of Technology
- Engineering Services, Annual Survey of Service Industries
- Environmental Goods and Services, Survey of
- Estimates of Trusteed Pension Fund, Quarterly
- Export Import Price Report
Surveys starting with the letter F
- Fare Basis Survey
- Federal Government Expenditures in Support of Education (FEDEX), Survey of
- Federal Patents, Licences and Royalties Survey
- Federal Science Expenditures and Personnel, Activities in the Social Sciences and Natural Sciences
- Feed Grain Purchases
- Field Crop Reporting Series
- Film and Video Distribution, Survey of Service Industries
- Film, Television and Video Post-production, Survey of Service Industries
- Film, Television and Video Production, Survey of Service Industries
- Financial Information of Community Colleges and Vocational Schools (FINCOL)
- Financial Information of Universities and Colleges (FIUC)
- Financial Security, Survey of
- Financial Statements, Quarterly Survey of (QSFS)
- Food Services and Drinking Places, Annual Survey of Service Industries
- Food Services and Drinking Places, Monthly Survey of
- For-hire Motor Carrier Freight Services Price Index
- Freight Rail Services Price Index (FRSPI)
- Frozen and Chilled Meats, Quarterly Stocks Survey
Surveys starting with the letter G
- Gasoline and Other Petroleum Fuels Sold
- General Social Survey – Canadians at Work and Home
Surveys starting with the letter H
- Head Office Survey, Annual
- Homicide Survey
- Household Spending, Survey of (SHS)
Surveys starting with the letter I
- Industrial Water Survey
- Informatics Professional Services Price Index
- International Price and Cost Survey
- International Travel Survey
- Inventory Statement of Butter and Cheese
Surveys starting with the letter J
- Job Vacancy and Wage Survey
Surveys starting with the letter L
- Labour Force Survey (LFS)
- Large Retailers, Monthly Survey of
Surveys starting with the letter M
- Major Air Carriers Key Financial and Operating Statistics Monthly Survey
- Manufacturing, Monthly Survey of
- Manufacturing and Logging Industries, Annual Survey of (ASML)
Surveys starting with the letter N
- Natural Gas Distribution Survey, Monthly
- Natural Gas Transmission Survey, Monthly
- New Condominium Apartment Price Report (NCAPR)
- New Housing Price Index (NHPI)
- Non-residential Building Construction Price Index (NRBCPI)
Surveys starting with the letter O
- Official Languages Demand for Services Survey
- Oil and Other Liquid Petroleum Products Pipeline Survey, Monthly
Surveys starting with the letter P
- Passenger Bus and Urban Transit Survey, Annual
- Passenger Bus and Urban Transit Survey, Monthly
- Pension Plans in Canada
- Periodical Publishers, Survey of Service Industries
- Postsecondary Student Information System
- Production and Disposition of Tobacco Products
- Purchasing Power Parities
Surveys starting with the letter R
- Railway – Annual Report
- Real Estate Agents, Brokers, Appraisers and Other Real Estate Activities, Annual Survey of Service Industries
- Real Estate Rental and Leasing and Property Management, Annual Survey of Service Industries
- Refined Petroleum Products, Monthly
- Repair and Maintenance Services, Annual Survey of Service Industries
- Research and Development in Canadian Industry, Annual Survey of
- Research and Development of Canadian Private Non-Profit Organizations
- Retail Non-store Survey, Annual
- Retail Services Price Index (RSPI)
- Retail Trade Survey, Annual
- Retail Trade Survey, Monthly
- Retail Trade Survey (Department Store Organizations), Monthly
Surveys starting with the letter S
- Sawmills
- Services Indicators Survey, Quarterly
- Software Development and Computer Services, Annual Survey of Service Industries
- Sound Recording and Music Publishing, Survey of Service Industries
- Specialized Design, Annual Survey of Service Industries
- Spectator Sports, Event Promoters, Artists and Related Industries, Annual Survey of Service Industries
- Suppliers of Business Financing, Biannual Survey of
- Survey Skills Development course
- Surveying and Mapping, Annual Survey of Service Industries
Surveys starting with the letter T
- Telecommunications, Quarterly Survey of
- Travel Arrangement Services, Annual Survey of Service Industries
- Travel Survey of Residents of Canada
- Trucking Commodity Origin and Destination Survey
Surveys starting with the letter U
- Uniform Crime Reporting Survey
Surveys starting with the letter W
- Wholesale Services Price Index
- Wholesale Trade Survey, Annual
- Wholesale Trade Survey, Monthly
Source code
<div class="wb-filter">
<section id="survey-a">
<h3><span class="wb-inv">Surveys starting with the letter </span>A</h3>
<ul class="list-unstyled">
<li>Accommodation Services, Annual Survey of Service Industries</li>
<li>Accounting Services, Annual Survey of Service Industries</li>
<li>Accounting Services Price Index</li>
<li>Advertising and Related Services, Annual Survey of Service Industries</li>
<li>Agriculture Frame Update Survey (AFUS)</li>
<li>Agriculture Water Survey</li>
<li>Air Carrier Operations in Canada Quarterly Survey</li>
<li>Air Passenger Origin and Destination - Domestic Journeys</li>
<li>Air Passenger Origin and Destination, Canada-<abbr title="United States of America">U.S.A.</abbr></li>
<li>Airport Activity Survey</li>
<li>Amusement and Recreation, Annual Survey of Service Industries</li>
<li>Apartment Building Construction Price</li>
<li>Architectural, engineering and related services price index (AESPI)</li>
<li>Architectural Services, Annual Survey of Service Industries</li>
<li>Asphalt Roofing</li>
<li>Automotive Equipment Rental and Leasing, Annual Survey of Service Industries</li>
</ul>
</section>
<section id="survey-b">
<h3><span class="wb-inv">Surveys starting with the letter </span>B</h3>
<ul class="list-unstyled">
<li>Building Permits Survey</li>
<li>Business Payrolls Survey</li>
<li>Business Register</li>
</ul>
</section>
...
</div>
List filtering
- Alberta
- British Columbia
- Manitoba
- New Brunswick
- Newfoundland & Labrador
- Northwest Territories
- Nova Scotia
- Nunavut
- Ontario
- Prince Edward Island
- Quebec
- Saskatchewan
- Yukon
Source code
<ul class="wb-filter">
<li>Alberta</li>
<li>British Columbia</li>
<li>Manitoba</li>
<li>New Brunswick</li>
<li>Newfoundland & Labrador</li>
<li>Northwest Territories</li>
<li>Nova Scotia</li>
<li>Nunavut</li>
<li>Ontario</li>
<li>Prince Edward Island</li>
<li>Quebec</li>
<li>Saskatchewan</li>
<li>Yukon</li>
</ul>
Table filtering
Municipalities | Population (2016) | Population (2011) |
---|---|---|
Alberta | ||
Calgary | 1,239,220 | 1,096,833 |
Edmonton | 932,546 | 812,201 |
Red Deer | 100,418 | 90,564 |
British Columbia | ||
Vancouver | 631,486 | 603,502 |
Surrey | 517,887 | 468,251 |
Burnaby | 232,755 | 233,218 |
Manitoba | ||
Winnipeg | 705,224 | 663,617 |
Brandon | 48,859 | N/A |
Springfield | N/A | 14,069 |
New Brunswick | ||
Moncton | 71,889 | 69,074 |
Saint John | 67,575 | 70,063 |
Fredericton | 58,220 | 56,224 |
Newfoundland & Labrador | ||
St. John's | 108,860 | 106,172 |
Conception Bay South | 26,199 | N/A |
Mount Pearl | 22,957 | N/A |
Northwest Territories | ||
Yellowknife | 19,569 | N/A |
Hay River | N/A | 3,606 |
Inuvik | 3,140 | N/A |
Nova Scotia | ||
Halifax | 403,131 | 390,096 |
Cape Breton | 94,285 | 97,398 |
Sydney | N/A | 31,597 |
Nunavut | ||
Iqaluit | 7,740 | N/A |
Arviat | 2,657 | N/A |
Rankin Inlet | 2,842 | N/A |
Ontario | ||
Toronto | 2,731,579 | 2,615,060 |
Ottawa | 934,243 | 883,391 |
Mississauga | 721,599 | 713,443 |
Prince Edward Island | ||
Charlottetown | N/A | 34,562 |
Summerside | N/A | 14,751 |
Stratford | N/A | 8,574 |
Quebec | ||
Montreal | 1,704,694 | 1,649,519 |
Quebec City | 531,902 | 516,622 |
Laval | 422,993 | N/A |
Saskatchewan | ||
Saskatoon | 246,376 | 222,189 |
Regina | 215,106 | 193,100 |
Prince Albert | 35,926 | N/A |
Yukon | ||
Whitehorse | 25,085 | N/A |
Dawson City | 1,375 | M/A |
Faro | 344 | N/A |
Source code
<table class="wb-filter table">
<caption>Population of largest municipalities per provinces</caption>
<thead>
<tr>
<th>Municipalities</th>
<th>Population (2016)</th>
<th>Population (2011)</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="rowgroup" class="h4" colspan="3">Alberta</th>
</tr>
<tr>
<th>Calgary</th>
<td>1,239,220</td>
<td>1,096,833</td>
</tr>
<tr>
<th>Edmonton</th>
<td>932,546</td>
<td>812,201</td>
</tr>
<tr>
<th>Red Deer</th>
<td>100,418</td>
<td>90,564</td>
</tr>
</tbody>
<tbody>
<tr>
<th scope="rowgroup" class="h4" colspan="3">British Columbia</th>
</tr>
<tr>
<th>Vancouver</th>
<td>631,486</td>
<td>603,502</td>
</tr>
<tr>
<th>Surrey</th>
<td>517,887</td>
<td>468,251</td>
</tr>
<tr>
<th>Burnaby</th>
<td>232,755</td>
<td>233,218</td>
</tr>
</tbody>
...
</table>
Applying additional search filters
The filter plugin has three types of search methods available: exact pattern match (default), AND operator, and OR operator.
Exact pattern match (default)
Finds items that contain exactly what the user has specified.
Not setting the filterType
will tell the filter plugin to apply the default search pattern which is an exact pattern match to the search terms. Only items that contain the full and exact pattern that the user enters will be shown.
- Alberta
- British Columbia
- Manitoba
- New Brunswick
- Newfoundland & Labrador
- Northwest Territories
- Nova Scotia
- Nunavut
- Ontario
- Prince Edward Island
- Quebec
- Saskatchewan
- Yukon
Source code
<ul class="wb-filter">
<li>Alberta</li>
...
</ul>
AND operator
Finds items that contain all of the specified words.
Setting the filterType
to the and
option will tell the filter plugin to apply an AND operator between search terms. Only items that contain all search terms will be shown.
- Alberta
- British Columbia
- Manitoba
- New Brunswick
- Newfoundland & Labrador
- Northwest Territories
- Nova Scotia
- Nunavut
- Ontario
- Prince Edward Island
- Quebec
- Saskatchewan
- Yukon
Source code
<ul class="wb-filter" data-wb-filter='{ "filterType": "and" }'>
<li>Alberta</li>
...
</ul>
OR operator
Finds items that contain at least one of the specified words.
Setting the filterType
to the or
option will tell the filter plugin to apply an OR operator between search terms. All items that contain any of the supplied search terms will be shown.
- Alberta
- British Columbia
- Manitoba
- New Brunswick
- Newfoundland & Labrador
- Northwest Territories
- Nova Scotia
- Nunavut
- Ontario
- Prince Edward Island
- Quebec
- Saskatchewan
- Yukon
Source code
<ul class="wb-filter" data-wb-filter='{ "filterType": "or" }'>
<li>Alberta</li>
...
</ul>
Move UI to specific container
Set the source
parameter to a jQuery selector that you want to hold the filter's UI. The UI will be added to the top (prepend) of said element.
- Alberta
- British Columbia
- Manitoba
- New Brunswick
- Newfoundland & Labrador
- Northwest Territories
- Nova Scotia
- Nunavut
- Ontario
- Prince Edward Island
- Quebec
- Saskatchewan
- Yukon
Source code
<div class="row">
<div class="col-md-4">
<div id="filterUIContainer"></div>
</div>
<div class="col-md-8">
<ul class="wb-filter" data-wb-filter='{ "source": "#filterUIContainer" }'>
<li>Alberta</li>
...
</ul>
</div>
</div>
Custom UI
Customize the UI generated by the plugin by adding an element inside the plugin and setting the option uiTemplate
to its CSS selector.
/ provinces
- Alberta
- British Columbia
- Manitoba
- New Brunswick
- Newfoundland & Labrador
- Northwest Territories
- Nova Scotia
- Nunavut
- Ontario
- Prince Edward Island
- Quebec
- Saskatchewan
- Yukon
Source code
<div id="filterTemplate">
<div class="form-group">
<label for="customSearchUI">Search</label>
<input type="search" class="form-control" placeholder="Type a province name..." id="customSearchUI">
</div>
<p class="wb-fltr-info"><span data-nbitem></span> / <span data-total></span> provinces</p>
</div>
<ul class="wb-filter" data-wb-filter='{
"uiTemplate": "#filterTemplate"
}'>
<li>Alberta</li>
...
</ul>
- Date modified: