How to use rc-tooltip - 4 common examples

To help you get started, we’ve selected a few rc-tooltip 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 / packages / ringcentral-widgets / components / AudioSettingsPanel / index.js View on Github external
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Tooltip from 'rc-tooltip';
import InfoIcon from '../../assets/images/Info.svg';
import styles from './styles.scss';
import i18n from './i18n';
import BackHeader from '../BackHeader';
import Panel from '../Panel';
import InputField from '../InputField';
import Select from '../DropdownSelect';
import Button from '../Button';
import SaveButton from '../SaveButton';
import IconLine from '../IconLine';

const TooltipCom = typeof Tooltip === 'function' ? Tooltip : Tooltip.default;

export default class AudioSettingsPanel extends Component {
  _isFirefox = false;

  constructor(props) {
    super(props);
    this.state = {
      dialButtonVolume: props.dialButtonVolume,
      dialButtonMuted: props.dialButtonMuted,
      ringtoneVolume: props.ringtoneVolume,
      ringtoneMuted: props.ringtoneMuted,
      callVolume: props.callVolume,
      inputDeviceId: props.inputDeviceId,
      outputDeviceId: props.outputDeviceId,
    };
github ringcentral / ringcentral-js-widgets / packages / ringcentral-widgets / components / IncomingCallPad / index.js View on Github external
import ForwardForm from '../ForwardForm';
import ReplyWithMessage from '../ReplyWithMessage';
import ActiveCallButton from '../ActiveCallButton';
import MultiCallAnswerButton from '../MultiCallAnswerButton';

import MessageIcon from '../../assets/images/MessageFill.svg';
import ForwardIcon from '../../assets/images/Forward.svg';
import IgnoreIcon from '../../assets/images/Ignore.svg';
import VoicemailIcon from '../../assets/images/Voicemail.svg';
import AnswerIcon from '../../assets/images/Answer.svg';
import styles from './styles.scss';

import i18n from './i18n';

const TooltipCom = typeof Tooltip === 'function' ? Tooltip : Tooltip.default;

export default class IncomingCallPad extends Component {
  constructor(props) {
    super(props);
    this.state = {
      showForward: false,
      replyMessage: null,
      showReplyWithMessage: false,
      toVoiceMailEnabled: true,
      replyMessageEnabled: true,
    };
    this.onShowForwardChange = (visible) => {
      this.setState({
        showForward: visible,
      });
    };
github ringcentral / ringcentral-js-widgets / packages / ringcentral-widgets / components / CallingSettingsPanel / index.js View on Github external
import InfoIcon from '../../assets/images/Info.svg';

import styles from './styles.scss';
import i18n from './i18n';

import SpinnerOverlay from '../SpinnerOverlay';
import BackHeader from '../BackHeader';
import Panel from '../Panel';
import Switch from '../Switch';
import IconField from '../IconField';
import InputField from '../InputField';
import TextInput from '../TextInput';
import DropdownSelect from '../DropdownSelect';
import SaveButton from '../SaveButton';

const TooltipCom = typeof Tooltip === 'function' ? Tooltip : Tooltip.default;
class CallingSettingsContent extends Component {
  constructor(props) {
    super(props);
    this.defaultRingoutPrompt = props.defaultRingoutPrompt;
    this.state = {
      callWith: props.callWith,
      ringoutPrompt: props.ringoutPrompt,
      myLocation: props.myLocation,
    };
  }

  componentWillReceiveProps(newProps) {
    if (newProps.callWith !== this.props.callWith) {
      this.setState({
        callWith: newProps.callWith,
      });
github sikidamjanovic / cowrite / node_modules / antd / lib / tooltip / placements.js View on Github external
Object.keys(placementMap).forEach(function (key) {
    placementMap[key] = config.arrowPointAtCenter ? _extends(_extends({}, placementMap[key]), {
      overflow: getOverflowOptions(autoAdjustOverflow),
      targetOffset: targetOffset
    }) : _extends(_extends({}, _placements.placements[key]), {
      overflow: getOverflowOptions(autoAdjustOverflow)
    });
    placementMap[key].ignoreShake = true;
  });
  return placementMap;

rc-tooltip

React Tooltip

MIT
Latest version published 2 months ago

Package Health Score

86 / 100
Full package analysis