Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@filerobot/utils / lib / generateSelectInputPlaceholder.js
Size: Mime:
var style = {
  opacity: 1,
  border: 0,
  background: 'transparent',
  padding: '5px 12px',
  fontSize: 14
};

/**
 * [TODO] We may remove this util when this feature implemented in Scaleflex UI
 * @param {string} placeholder
 * @param {value} string
 * @param {value} Array
 * @returns {Object} placeholder with styles
 */

export default function generateSelectInputPlaceholder(placeholder) {
  var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  if (value.length) return;
  return {
    placeholder: placeholder,
    style: style
  };
}