Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- registerBlockType('gutenberg-widget-block/rss-feed', {
- title: 'RSS Feed',
- icon: 'rss',
- category: 'widgets',
- attributes: {
- numberOfPosts: {
- type: 'integer',
- default: 10
- },
- url: {
- type: 'string'
- },
- showDescription: {
- type: 'boolean',
- default: false
- },
- showDate: {
- type: 'boolean',
- default: false
- }
- },
- edit: withState( { validated: false, error: false } ) ( edit ),
- save: save,
- });
Add Comment
Please, Sign In to add comment