How to use react-widgets-moment - 5 common examples

To help you get started, we’ve selected a few react-widgets-moment examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ringcentral / ringcentral-js-widgets / src / components / MeetingPanel / index.js View on Github external
constructor(...args) {
    super(...args);
    this.props.init();
    this.state = {};
    Moment.locale(this.props.currentLocale);
    momentLocalizer();
  }
github ringcentral / ringcentral-js-widgets / packages / ringcentral-widgets / components / MeetingConfigs / index.js View on Github external
constructor(...args) {
    super(...args);
    this.props.init();
    this.state = {};
    Moment.locale(this.props.currentLocale);
    momentLocalizer();
  }
github saharshg / react-boilerplate / src / utils / formUtils / index.js View on Github external
import moment from 'moment';
import momentLocaliser from 'react-widgets-moment';
import { DateTimePicker, DropdownList } from 'react-widgets';
import 'react-widgets/dist/css/react-widgets.css';
import {
  Label,
  Input,
  FormFeedback,
  FormGroup,
  CustomInput,
  InputGroup,
  InputGroupAddon,
} from 'reactstrap';
import './style.scss';

momentLocaliser(moment);

export const Validations = ({
  error,
  validationError,
  warning,
}) => (
  <>
    {validationError || error}
    {(warning &amp;&amp; <span>{warning}</span>)}
  
);

const renderSwitch = (props) =&gt; {
  const {
    input,
    id,
github ringcentral / ringcentral-js-widgets / packages / ringcentral-widgets / components / DatePicker / index.js View on Github external
constructor(props) {
    super(props);
    Moment.locale(this.props.currentLocale);
    momentLocalizer();
    this.state = {
      open: false,
    };
  }
  componentDidMount() {
github yugabyte / yugabyte-db / managed / ui / src / components / metrics / GraphPanelHeader / GraphPanelHeader.js View on Github external
constructor(props) {
    super(props);
    momentLocalizer(moment);
    const defaultFilter = filterTypes[DEFAULT_FILTER_KEY];
    let currentUniverse = "all";
    let currentUniversePrefix  = "all";
    if (this.props.origin === "universe") {
      currentUniverse = this.props.universe.currentUniverse.data;
      currentUniversePrefix = currentUniverse.universeDetails.nodePrefix;
    }
    this.state = {
      showDatePicker: false,
      filterLabel: defaultFilter.label,
      filterType: defaultFilter.type,
      filterValue: defaultFilter.value,
      currentSelectedUniverse: currentUniverse,
      endMoment: moment(),
      startMoment: moment().subtract("1", "hours"),
      nodePrefix: currentUniversePrefix,

react-widgets-moment

A moment.js localizer for react-widgets

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis

Popular react-widgets-moment functions