Instantly share code, notes, and snippets.

Embed
What would you like to do?
script_actualites_filtre_html.txt
<!-- Script permettant de filtrer par année -->
<!-- Source : https://platinumdogs.me/2014/07/15/dynamically-filtering-sharepoint-list-views-using-javascript/ -->
<!-- Lib CSS -->
<link rel="stylesheet" type="text/css" href="/Style Library/css/app_filtre.css" />
<!-- Lib JS -->
<script type="text/javascript" src="/Style Library/scripts/knockout-3.1.0.js"></script>
<!-- App JS -->
<script type="text/javascript" src="/Style Library/scripts/app_filtre.js"></script>
<div id="cdtm" class="cdtm">
<div class="cdtm-wrapper">
<div class='box-5'>
<div class="nav">
<div class="row">
<div class='left'>
<ul class='years' data-bind='foreach: FilterYears' title='Filtrer les actualités par année'>
<li data-bind='css: { selected: $parent.isSelectedYear($data) }'>
<a href='#'
data-bind='
text: $data,
click: $parent.filterByYear'>
</a></li>
</ul>
<ul class='months' data-bind='foreach: FilterMonths' title='Filtrer les actualités par mois'>
<li data-bind='css: { selected: $parent.isSelectedMonth($data) }'>
<a href='#'
data-bind='
text: $data,
click: $parent.filterByMonth'>
</a></li>
</ul>
</div>
<!--
<div class='right'>
<div class='search-wrapper'>
<input class='searchfield' type='text' value='' data-bind='value: FilterTextIm, valueUpdate: "afterkeydown"' title='filter the meetings by name' />
<i class='icon-search'></i>
</div>
</div>
-->
</div>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment