This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # serializers.py | |
| from .models import FGItem, FGTaken | |
| from rest_framework import serializers | |
| class FGItemSerializer(serializers.HyperlinkedModelSerializer): | |
| class Meta: | |
| model = FGItem | |
| fields = ('code', 'description', 'uom', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var SimpleExample = React.createClass({ | |
| render: function() { | |
| return ( | |
| <div> | |
| <PRMap /> | |
| </div> | |
| ); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var PropertiesExample = React.createClass({ | |
| render: function() { | |
| return ( | |
| <div><PRMap fill='red' stroke='black' stroke-width='3' /></div> | |
| ); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var EventsExample = React.createClass({ | |
| handleMouseOver: function(evt, elem) { | |
| document.getElementById('event-text').innerHTML = elem.data('town'); | |
| }, | |
| handleClick: function(evt, elem) { | |
| elem.attr('fill', 'red'); | |
| }, | |
| render: function() { | |
| return ( | |
| <div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var data = [ | |
| { | |
| id: 'canovanas', | |
| fill: 'red', | |
| stroke: 'yellow', | |
| 'stroke-width': 3 | |
| }, | |
| { | |
| id: 'san_juan', | |
| fill: 'green', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var data = [ | |
| { | |
| id: 'canovanas', | |
| fill: 'red', | |
| stroke: 'yellow', | |
| 'stroke-width': 3 | |
| }, | |
| { | |
| id: 'san_juan', | |
| fill: 'green', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { | |
| AppRegistry, | |
| Component, | |
| StyleSheet, | |
| View | |
| } from 'react-native'; | |
| import { BubbleChart } from 'react-native-ios-charts'; | |
| class charts extends Component { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { | |
| AppRegistry, | |
| Component, | |
| StyleSheet, | |
| View | |
| } from 'react-native'; | |
| import { CandleStickChart } from 'react-native-ios-charts'; | |
| class charts extends Component { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { | |
| AppRegistry, | |
| Component, | |
| StyleSheet, | |
| View | |
| } from 'react-native'; | |
| import { ScatterChart } from 'react-native-ios-charts'; | |
| class charts extends Component { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { | |
| Component, | |
| StyleSheet, | |
| View | |
| } from 'react-native'; | |
| import { BarChart } from 'react-native-ios-charts'; | |
| class MyChart extends Component { | |
| render() { |
OlderNewer