Skip to content

Instantly share code, notes, and snippets.

@aatanasovdev
Created July 15, 2018 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aatanasovdev/7fce3367f4d5ebb0a73db2c9fc35a613 to your computer and use it in GitHub Desktop.
Save aatanasovdev/7fce3367f4d5ebb0a73db2c9fc35a613 to your computer and use it in GitHub Desktop.
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,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment