Html Code Samples



Filters


for loop counter in python Django template
kishore_kumar | 5 years, 1 month
{% for my_object in my_object_list %}
    {{ forloop.counter }} {# starting index 1 #}
    {{ forl
python django html
How to get first element of the list in Django template
kishore_kumar | 5 years, 5 months
<h3> Print all elements</h3>
<div>
    {% for item in my_list %}
html python django
template filters for slice string and print new lines in Django filters
kishore_kumar | 4 years, 7 months
<!-- will give first 100 characters from my_string -->
{{ my_string | slice:"100 "}}

html python django
How to get key value pairs of json object in angular js
harika | 5 years
<html>
    <body>
        <table data-ng-repeat="(key, value) in jsonObject">
html json angular js
Search options in bootstrap select , search select
kishore_kumar | 5 years, 4 months
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script sr
html bootstrap
work with react without node installation in html
harika | 5 years, 9 months
//Basic way
<!DOCTYPE html>
<html>
javascript react js html
Render custom components without node installation
harika | 5 years, 9 months
<!DOCTYPE html>
<html>
  <head>
Copy this code into your test html and then run it. If u have worked with normal html , this also wo
react js html
Load native javascript inside webview in react-native
harika | 4 years, 2 months
import React, { Component } from 'react';
import {View,  WebView} from 'react-native-webview';

install react-native-webview using npm npm i react-native-webview --save try to load the compo
html react-native webview
Load html inside webview using react native
harika | 4 years, 2 months
// html.js
module.exports = function() { return `
<html>
Install react-native-webview using npm npm i react-native-webview --save try to seperate th
html react-native webview
How to iterate json object in angular js
harika | 5 years
<html>
    <body>
        <table data-ng-repeat="(key, value) in jsonObject">
html json angular js