diff --git a/README.md b/README.md index 7190e15..64b6759 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,12 @@ Define callback in settings. Callbacks executes after each filtering events.(In after_add: function(data){ //Call after adding data to filter. }, + after_render_record: function(record) { + //Call after each record is rendered + if(record.amount > 500) { + $('#fjs_'+record.id+' .fs_price').addClass('red'); + } + } }; diff --git a/examples/assets/css/stream.css b/examples/assets/css/stream.css index 6dcf8eb..441eddf 100644 --- a/examples/assets/css/stream.css +++ b/examples/assets/css/stream.css @@ -241,4 +241,3 @@ select:focus, textarea:focus, input:focus{ .criteria select{ margin-left: 10px; } - diff --git a/examples/assets/css/style.css b/examples/assets/css/style.css index 7512d1b..141458b 100644 --- a/examples/assets/css/style.css +++ b/examples/assets/css/style.css @@ -162,3 +162,39 @@ h1, h2, h3, h4, h5, h6, p, ol, ul { h2{ text-align: center; } + +.fs_price.black{ + color: black; +} +.fs_price.green{ + color: green; +} +.fs_price.blue{ + color: blue; +} +.fs_price.red{ + color: red; +} +.price_status{ + font-size: 90%; + font-weight: normal; + margin-right: 5px; + padding: 1px 0 3px; + margin-top: 2px; + width: 19px !important; + height: 12px; + text-decoration: none; + float: right; +} +.price_status.black{ + background-color: black; +} +.price_status.blue{ + background-color: blue; +} +.price_status.green{ + background-color: green; +} +.price_status.red{ + background-color: red; +} diff --git a/examples/filterjs.html b/examples/filterjs.html index 33f31a8..271ef30 100644 --- a/examples/filterjs.html +++ b/examples/filterjs.html @@ -214,29 +214,34 @@